| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/simplejson/__pycache__/ |
Upload File : |
�
"Iep � �D � d Z ddlmZ ddlZddlZd� Zedk( r e� yy)a Command-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 �Z � t t j � dk( r!t j } t j }n�t t j � dk( r.t t j d d� } t j }nvt t j � dk( r;t t j d d� } t t j d d� }nt
t j d dz � �| 5 t j | t j d� � } d d d � |5 t j |dd
d�� |j d� d d d � y # t $ r! t
t j � d � �w xY w# 1 sw Y �mxY w# 1 sw Y y xY w)
N� � �r� �wr z [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 �1/usr/lib/python3/dist-packages/simplejson/tool.py�mainr! sA � �
�3�8�8�}��������*�*�� �S�X�X��!� ��c�h�h�q�k�3�'���*�*�� �S�X�X��!� ��c�h�h�q�k�3�'���s�x�x��{�C�(������!��'<�<�=�=� � 0� 0��)�)�F�.2�.>�.>�(,�.�C�0�
� �� � �#�w�$�v�4�P��
�
�d��� �� � 0��S�\�\�^�A�.�/�/� 0��0� 0��� �s* � F�&E(�3,F!�(*F�F�F�!F*�__main__)�__doc__�
__future__r r �
simplejsonr r! �__name__� � r �<module>r) s. ��� &�
� ��0 �z���F� r(