관리-도구
편집 파일: tool.cpython-311.pyc
� \�Dgp � �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 �q/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/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<