
    0?hj                         S r SSKrSSKJr  SSKJr  SSKJr  SSKJr  S
S jr	\
S	:X  a  \R                  " \	" 5       5        gg)zA tool to parse and pretty-print JSON5.

Usage:

    $ echo '{foo:"bar"}' | python -m json5.tool
    {
        foo: 'bar',
    }
    $ echo '{foo:"bar"}' | python -m json5.tool --as-json
    {
        "foo": "bar"
    }
    N   )
arg_parser)lib)Host)VERSIONc           	      j   U=(       d
    [        5       n[        R                  " US[        S9nUR	                  SSSSS9  UR	                  SS	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	                  SS SS!S"9  UR	                  S#S$S%S&S'S(9  UR                  U 5      nUR                  b  UR                  $ UR                  (       a  UR                  [        5        g)UR                  (       a  UR                  nOFUR                  S&:X  a  UR                  R                  5       nOUR                  UR                  5      nUR                  S*:X  a  S Ul        O [!        UR                  5      Ul        UR$                  (       a  SUl        SUl        [*        R,                  " U5      n[*        R.                  " UUR                  UR&                  UR(                  S+9nUR                  U5        g)! ["         a     Nf = f),Njson5)progdescz-cSTRcmdz:inline json5 string to read instead of reading from a file)metavardesthelpz	--as-jsonas_jsonstore_constTFz:output as JSON (same as --quote-keys --no-trailing-commas))r   actionconstdefaultr   z--indentindent   z0amount to indent each line (default is 4 spaces))r   r   r   z--quote-keys
store_truezquote all object keys)r   r   r   z--no-quote-keysstore_false
quote_keyszBdon't quote object keys that are identifiers (this is the default))r   r   r   z--trailing-commaszUadd commas after the last item in multi-line objects and arrays (this is the default)z--no-trailing-commastrailing_commaszEdo not add commas after the last item in multi-line lists and objects)r   r   r   fileFILE?-z`optional file to read JSON5 document from; if not specified or "-", will read from stdin instead)r   nargsr   r   r   None)r   r   r   )r   r   ArgumentParser__doc__add_argument
parse_argsexit_statusversionprint_r   r   r   stdinreadread_text_filer   int
ValueErrorr   r   r   r   loadsdumps)argvhostparserargsinpobjss          R/var/www/ev-aguas/ev-aguas-proceso/venv/lib/python3.13/site-packages/json5/tool.pymainr8   %   sE   >46D&&t'HF
e%3  4 )M"EK  L 
15  6 |U4  6
)-)6  7 +L $H  I .5F,<  = c3'  ( T"D%!!!||Gxxhh	c	jjoo!!$)),{{f	dkk*DK ||$
))C.C		#!__"&"6"6	8A 	KKN  		s   H% %
H21H2__main__)NN)r#   sys r   r   r1   r   r'   r   r8   __name__exit     r7   <module>r@      s?        BJ zHHTV r?   