ó
    F\h*  ã                   ó¢   • S r SSKrSSKrSSKrS r\S:X  a	   \" 5         gg! \ a&  r\R                  " \R                  5         SrCgSrCff = f)a  Command-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)

é    Nc                  óä  • Sn Sn[         R                  " XS9nUR                  SSSSS9  UR                  S	SS
S S9  UR                  SSSSS9  UR                  SSSSS9  UR                  SSSSS9  UR                  5       nUR                  SS[        SS9  UR                  SSSSSS 9  UR                  S!SSS S"S 9  UR                  S#SS$S%9  UR                  5       nUR                  UR                  UR                  S&.nUR                  (       a
  S US'   S'US('    UR                  S:X  a  [        R                  nO[        UR                  S)S*9n UR                  (       a
  S+ U 5       nO[        R                   " U5      4nU[        R                  La  UR#                  5         UR$                  c  [        R&                  nO[        UR$                  S,S)S*9nU   U H+  n	[        R(                  " X˜40 UD6  UR+                  S-5        M-     S S S 5        g ! U[        R                  La  UR#                  5         f f = f! , (       d  f       g = f! [,         a  n
[/        U
5      eS n
A
ff = f).Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)ÚprogÚdescriptionÚinfileÚ?z-a JSON file to be validated or pretty-printedÚ-)ÚnargsÚhelpÚdefaultÚoutfilez%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_asciiÚstore_falsez(disable escaping of non-ASCII characters)Údestr   r
   z--json-linesznparse input using the JSON Lines format. Use with --no-indent or --compact to produce valid JSON Lines output.z--indenté   zJseparate items with newlines and use this number of spaces for indentation)r   Útyper
   z--tabÚstore_constÚindentÚ	z9separate items with newlines and use tabs for indentation)r   r   Úconstr
   z--no-indentz/separate items with spaces rather than newlinesz	--compactz1suppress all whitespace separation (most compact))r   r
   )Ú	sort_keysr   r   )Ú,Ú:Ú
separatorszutf-8)Úencodingc              3   óN   #   • U  H  n[         R                  " U5      v •  M     g 7f)N)ÚjsonÚloads)Ú.0Úlines     Ú /usr/lib/python3.13/json/tool.pyÚ	<genexpr>Úmain.<locals>.<genexpr>B   s   é € Ð<²V¨TœŸ
š
 4×(Ð(²Vùs   ‚#%ÚwÚ
)ÚargparseÚArgumentParserÚadd_argumentÚadd_mutually_exclusive_groupÚintÚ
parse_argsr   r   r   Úcompactr   ÚsysÚstdinÚopenÚ
json_linesr   ÚloadÚcloser   ÚstdoutÚdumpÚwriteÚ
ValueErrorÚ
SystemExit)r   r   ÚparserÚgroupÚoptionsÚ	dump_argsr   Úobjsr   ÚobjÚes              r"   Úmainr@      s”  € Ø €Dð@€Kä×$Ò$¨$ÑH€FØ
×Ñ˜¨ØLØ #ð ñ %ð ×Ñ˜	¨ØDØ $ð ñ &ð ×Ñ˜¨lÀEØTð ñ Và
×ÑÐ+°.ÈØGð ñ Ià
×Ñ˜¨|ÀUð`ð ñ að ×/Ñ/Ó1€EØ	×Ñ�z¨1´3ð3ð ñ 4ð 
×Ñ�w }¸8Ø!ð ).ð ñ /ð 
×Ñ�}¨]ÀØ!ØMð ñ Oð 
×Ñ�{¨<ØOð ñ Qà×ÑÓ!€Gð ×&Ñ&Ø—.‘.Ø×,Ñ,ñ€Ið
 ‡‡Ø"ˆ	�(ÑØ"*ˆ	�,ÑðØ�>‰>˜SÓ Ü—Y‘Y‰Fä˜'Ÿ.™.°7Ñ;ˆFð	Ø×!×!Ù<±VÓ<‘äŸ	š	 &Ó)Ð+�àœSŸY™YÒ&Ø—‘”à�?‰?Ñ"Ü—j‘j‰Gä˜7Ÿ?™?¨C¸'ÑBˆGÚÛ�Ü—	’	˜#Ñ4¨)Ò4Ø—‘˜dÖ#ñ ÷ ˆWøð œSŸY™YÒ&Ø—‘•ð 'ú÷ �Wûô ó Ü˜‹mÐûðúsO   Ä 5I Å2H ÆAI Ç 2IÈI È&IÉI É
IÉI ÉI É
I/ÉI*É*I/Ú__main__)
Ú__doc__r'   r   r.   r@   Ú__name__ÚBrokenPipeErrorÚexcÚexitÚerrno© ó    r"   Ú<module>rJ      sZ   ðñó Û Û 
ò@ðF ˆzÓðÙ�ð øð ó Ø�Š�—‘×Ñûðús   ™" ¢A¨A	Á	A