관리-도구
편집 파일: tool.cpython-33.pyc
� ��f� c @ sD d Z d d l Z d d l Z d d � Z e d k r@ e � n d S( u 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) i Nc % C sP t t j � d k r* t j } t j } n� t t j � d k ra t t j d d � } t j } n[ t t j � d k r� t t j d d � } t t j d d � } n t t j d d � � | �L y t j | � } Wn1 t k r } z t | � � WYd d } ~ Xn XWd QX| �4 t j | | d d d d d d �| j d � Wd QXd S( Ni i u ri u wi u [infile [outfile]]u sort_keysu indenti u separatorsu ,u : u T( u ,u : ( u lenu sysu argvu stdinu stdoutu openu SystemExitu jsonu loadu ValueErroru dumpu Trueu write( u infileu outfileu obju e( ( u. /opt/alt/python33/lib64/python3.3/json/tool.pyu main s&