AlkantarClanX12

Your IP : 3.148.117.237


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/simplejson/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/simplejson/__pycache__/tool.cpython-311.pyc

�

�܋fp��P�dZddlmZddlZddlZd�Zedkre��dSdS)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�|�ttj��dkrtj}tj}n�ttj��dkr-ttjdd��}tj}n�ttj��dkrAttjdd��}ttjdd��}n"t
tjddz���|5	tj|tj	d�	��}n4#t$r't
tj��d���wxYw	ddd��n#1swxYwY|5tj||dd
d���|�
d��ddd��dS#1swxYwYdS)
N���r��wrz [infile [outfile]]T)�object_pairs_hook�use_decimalz    )�	sort_keys�indentr�
)�len�sys�argv�stdin�stdout�open�
SystemExit�json�load�OrderedDict�
ValueError�exc_info�dump�write)�infile�outfile�objs   �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/simplejson/tool.py�mainr!s��
�3�8�}�}��������*���	�S�X���!�	�	��c�h�q�k�3�'�'���*���	�S�X���!�	�	��c�h�q�k�3�'�'���s�x��{�C�(�(������!��'<�<�=�=�=�	�0�0�	0��)�F�.2�.>�(,�.�.�.�C�C���	0�	0�	0��S�\�^�^�A�.�/�/�/�	0����
�0�0�0�0�0�0�0�0�0�0�0����0�0�0�0�
����	�#�w�$�v�4�P�P�P�P��
�
�d������������������������s<�E(�!D'�&E(�'1E�E(�(E,�/E,�5/F1�1F5�8F5�__main__)�__doc__�
__future__rr�
simplejsonrr!�__name__��r �<module>r)sk����&�%�%�%�%�%�
�
�
�
��������0�z����D�F�F�F�F�F��r(