OwlCyberSecurity - MANAGER
Edit File: tool.cpython-36.opt-2.pyc
3 ��2am������������������@���s:���d�dl�Z�d�dlZd�dlZd�dlZdd��Zedkr6e���dS�)�����Nc�������� ���"���C���s��d}�d}t�j|�|d�}|jddt�j��dd��|jddt�jd �d d��|jddd dd��|j��}|jphtj}|jpttj }|j }|�V�y$|r�tj|�}ntj|t jd�}W�n*�tk r��}�zt|��W�Y�d�d�}~X�nX�W�d�Q�R�X�|�"�tj|||dd��|jd��W�d�Q�R�X�d�S�)Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)�prog�description�infile�?z-a JSON file to be validated or pretty-printed)�nargs�type�help�outfile�wz%write the output of infile to outfilez--sort-keys� store_trueFz5sort the output of dictionaries alphabetically by key)�action�defaultr���)Zobject_pairs_hook����)� sort_keys�indent� )�argparse�ArgumentParser�add_argument�FileType� parse_argsr����sys�stdinr ����stdoutr����json�load�collections�OrderedDict� ValueError� SystemExit�dump�write) r���r����parser�optionsr���r ���r����obj�e��r&����)/opt/alt/python36/lib64/python3.6/tool.py�main���s0���� $r(����__main__)r���r���r���r���r(����__name__r&���r&���r&���r'����<module> ���s���