AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core20/2582/usr/lib/python3.8/json/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /snap/core20/2582/usr/lib/python3.8/json/__pycache__/tool.cpython-38.pyc
U

���g��
@sjdZddlZddlZddlZdd�Zedkrfz
e�Wn.ek
rdZze�ej	�W5dZ[XYnXdS)aCommand-line tool to validate and pretty-print JSON

Usage::

    $ echo '{"json":"obj"}' | python -m json.tool
    {
        "json": "obj"
    }
    $ echo '{ 1.2:3.4}' | python -m json.tool
    Expecting property name enclosed in double quotes: line 1 column 3 (char 2)

�NcCs4d}d}tj||d�}|jddtjdd�dtjd	�|jd
dtjddd�dtjd	�|jd
dddd�|jddddd�|��}|j}|j	}|j
}|j}|��|�~zJ|r�dd�|D�}nt�
|�f}|D] }	tj|	||dd�|�d�q�Wn,tk
�r}
zt|
��W5d}
~
XYnXW5QRXW5QRXdS)Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)�prog�description�infile�?zutf-8)�encodingz-a JSON file to be validated or pretty-printed)�nargs�type�help�default�outfile�wz%write the output of infile to outfilez--sort-keys�
store_trueFz5sort the output of dictionaries alphabetically by key)�actionr
r	z--json-linesz&parse input using the jsonlines formatcss|]}t�|�VqdS)N)�json�loads)�.0�line�r�/usr/lib/python3.8/json/tool.py�	<genexpr>,szmain.<locals>.<genexpr>�)�	sort_keys�indent�
)�argparse�ArgumentParser�add_argumentZFileType�sys�stdin�stdout�
parse_argsrrr�
json_linesr�load�dump�write�
ValueError�
SystemExit)rr�parserZoptionsrrrr!Zobjs�obj�errr�mainsD
��
�
�r*�__main__)
�__doc__rrrr*�__name__�BrokenPipeError�exc�exit�errnorrrr�<module>s$


Anon7 - 2022
AnonSec Team