python (3.11.7)

(root)/
lib/
python3.11/
json/
__pycache__/
tool.cpython-311.opt-1.pyc

e
dZddlZddlZddlZddlmZdZedkr5	edS#e$r Z	ej
e	jYdZ	[	dSdZ	[	wwxYwdS)aCommand-line tool to validate and pretty-print JSON

Usage::

    $ echo '{"json":"obj"}' | python -m json.tool
    {
        "json": "obj"
    }
    $ echo '{ 1.2:3.4}' | python -m json.tool
    Expecting property name enclosed in double quotes: line 1 column 3 (char 2)

N)Pathcd}d}tj||}|ddtjddtj	|d
dtdd	|dd
dd|dddd|dd
dd|}|ddtd|ddddd !|d"dddd#!|d$d
d%&|	}|j
|j|jd'}|j
r
d|d<d(|d)<|j5}	|jr
d*|D}nt!j|f}|j
tj}n|jd+d}|5}	|D]*}
t!j|
|	fi||	d,+	dddn#1swxYwYn!#t.$r}t1|d}~wwxYwddddS#1swxYwYdS)-Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)progdescriptioninfile?zutf-8)encodingz-a JSON file to be validated or pretty-printed)nargstypehelpdefaultoutfilez%write the output of infile to outfilez--sort-keys
store_trueFz5sort the output of dictionaries alphabetically by key)actionr
rz--no-ensure-asciiensure_asciistore_falsez(disable escaping of non-ASCII characters)destrrz--json-linesznparse input using the JSON Lines format. Use with --no-indent or --compact to produce valid JSON Lines output.z--indentzJseparate items with newlines and use this number of spaces for indentation)r
rrz--tabstore_constindent	z9separate items with newlines and use tabs for indentation)rrconstrz--no-indentz/separate items with spaces rather than newlinesz	--compactz1suppress all whitespace separation (most compact))rr)	sort_keysrr),:
separatorsc3>K|]}tj|VdS)N)jsonloads).0lines  =/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/json/tool.py	<genexpr>zmain.<locals>.<genexpr>As,<<T
4((<<<<<<w
)argparseArgumentParseradd_argumentFileTypesysstdinradd_mutually_exclusive_groupint
parse_argsrrrcompactr
json_linesrloadrstdoutopendumpwrite
ValueError
SystemExit)rrparsergroupoptions	dump_argsrobjsoutrobjes            r"mainrAs D@K

$$K
H
H
HF
%.@@@L #	+++	!D $&&&
lETVVV
+.GIII
|U`aaa
//11E	z133444
w}8!).///
}]!MOOO
{<OQQQ!!G&.,I
+"	("*	,	 6	 !
,<<V<<<	&))+&jo**3*AA
(((CIc788i888MM$''''(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(	 	 	 Q--	                   s[;I
=AH.HHH	HH	HI

H=)H88H==I

II__main__)__doc__r'rr+pathlibrrA__name__BrokenPipeErrorexcexiterrnor$r"<module>rKs



; ; ; |zs
+AAA