Your IP : 3.129.26.151


Current Path : /lib64/python2.7/site-packages/simplejson/
Upload File :
Current File : //lib64/python2.7/site-packages/simplejson/tool.pyc

�
���Sc@�sQdZddlmZddlZddlZd�ZedkrMe�ndS(sCommand-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)

i����(twith_statementNcC�sUttj�dkr*tj}tj}n�ttj�dkrattjdd�}tj}n[ttj�dkr�ttjdd�}ttjdd�}nttjdd��|�Qy"tj|dtj	d	t
�}Wn'tk
rttj�d��nXWdQX|�4tj
||d
t
ddd	t
�|jd
�WdQXdS(Niitritwis [infile [outfile]]tobject_pairs_hooktuse_decimalt	sort_keystindents    s
(tlentsystargvtstdintstdouttopent
SystemExittjsontloadtOrderedDicttTruet
ValueErrortexc_infotdumptwrite(tinfiletoutfiletobj((s5/usr/lib64/python2.7/site-packages/simplejson/tool.pytmains(		

 "t__main__(t__doc__t
__future__RRt
simplejsonRRt__name__(((s5/usr/lib64/python2.7/site-packages/simplejson/tool.pyt<module>s