• File: tool.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/site-packages/simplejson/__pycache__/tool.cpython-37.pyc
  • Date Modified: 04/24/2023 7:44 PM
  • File size: 1.16 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

VXYp@s:dZddlmZddlZddlZddZedkr6edS)aCommand-line tool to validate and pretty-print JSON

Usage::

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

)with_statementNc	Csttjdkrtj}tj}nhttjdkrBttjdd}tj}nBttjdkrrttjdd}ttjdd}nttjdd|Bytj|tj	dd	}Wn$t
k
rttdYnXWdQRX|$tj||dd
dd|
dWdQRXdS)
Nrwrz [infile [outfile]]T)Zobject_pairs_hookuse_decimalz    )Z	sort_keysindentr
)lensysargvstdinstdoutopen
SystemExitjsonloadOrderedDict
ValueErrorexc_infodumpwrite)ZinfileZoutfileobjrB/opt/alt/python37/lib64/python3.7/site-packages/simplejson/tool.pymains( r__main__)__doc__Z
__future__rrZ
simplejsonrr__name__rrrr<module>s