����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python312
/
lib64
/
python3.12
/
json
/
__pycache__
/
Filename :
tool.cpython-312.pyc
back
Copy
� ����4[Yh ����������������������������d�Z�ddlZddlZddlZddlmZ�d��Zedk(��r ��e���������yy#�e$�r&Z �ej������������������e j��������������������������Y�dZ [ ydZ [ ww�xY�w)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) �����N)�Pathc�����������������������d}�d}t��������j������������������|�|��������}|j������������������ddt��������j������������������d��������dt��������j ������������������� ��������|j������������������d dt��������dd�� ��������|j������������������dd dd���������|j������������������dddd���������|j������������������dd dd���������|j��������������������������}|j������������������ddt��������d���������|j������������������ddddd �!��������|j������������������d"ddd�d#�!��������|j������������������d$d d%�&��������|j��������������������������}|j������������������|j������������������|j������������������d'�}|j������������������r d�|d<���d(|d)<���|j������������������5�} �|j������������������r d*��|D���������}nt!��������j"������������������|�������f}|j$�������������������t��������j&������������������}n|j$������������������j)������������������d+d��������}|5�} |D�]*��} t!��������j*������������������| | fi�|���| j-������������������d,���������,� �d�d�d���������d�d�d���������y�#�1�sw�Y����xY�w#�t.��������$�r}t1��������|��������d�}~ww�xY�w#�1�sw�Y���y�xY�w)-Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)�prog�description�infile�?zutf-8)�encodingz-a JSON file to be validated or pretty-printed)�nargs�type�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 ���r���r���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���)�,�:� separatorsc��������������3����F���K����|�]��}t��������j������������������|������������y��w)N)�json�loads)�.0�lines��� �0/opt/alt/python312/lib64/python3.12/json/tool.py� <genexpr>zmain.<locals>.<genexpr>A���s���������<�V�T�� � �4�(�V�s����!�w� )�argparse�ArgumentParser�add_argument�FileType�sys�stdinr����add_mutually_exclusive_group�int� parse_argsr���r���r����compactr���� json_linesr����loadr����stdout�open�dump�write� ValueError� SystemExit)r���r����parser�group�options� dump_argsr����objs�outr����obj�es��� r"����mainr@������so����� �D�@�K� � $� $�$�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� ����"� �(��"*� �,�� ���6� ��!�!�<�V�<��� � �&�)�+�����&��j�j���o�o�*�*�3��*�A�����C��I�I�c�7�8�i�8��M�M�$�'�� ���� ��������� ��Q�-��� ��� ��sC����,I��.A(H$�0H�H$�H! �H$�$ H=�-H8�8H=�=I���I �__main__)�__doc__r&���r���r*����pathlibr���r@����__name__�BrokenPipeError�exc�exit�errno�������r"����<module>rK������s^����������� ���; �|��z�����������������������s����'��A�A � A