AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/simplejson/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/simplejson/__pycache__/tool.cpython-311.pyc |
� �܋fp � �P � d Z ddlmZ ddlZddlZd� Zedk r e� � dS dS )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 �| � t t j � � dk rt j } t j }n�t t j � � dk r-t t j d d� � } t j }n�t t j � � dk rAt t j d d� � } t t j d d� � }n"t t j d dz � � �| 5 t j | t j d� � � }n4# t $ r' t t j � � d � � �w xY w d d d � � n# 1 swxY w Y |5 t j ||dd d�� � |� d� � d d d � � d S # 1 swxY w Y d S ) 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 �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<