__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.243: ~ $
o

0�i
�
@s|dZddlZddlZddlZddlmZdd�Zedkr<ze�WdSey;Z	z
e�
e	j�WYdZ	[	dSdZ	[	wwdS)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)

�N)�PathcCs�d}d}tj||d�}|jddtjdd�dtjd	�|jd
dtddd	�|jdd
ddd�|jddddd�|jdd
ddd�|��}|jddtdd�|jddddd d!�|jd"dddd#d!�|jd$d
d%d&�|�	�}|j
|j|jd'�}|j
r�d|d<d(|d)<|j�d}zJ|jr�d*d+�|D�}nt�|�f}|jdur�tj}n|jjd,dd�}|�}	|D]}
tj|
|	fi|��|	�d-�q�Wd�n1s�wYWnty�}zt|��d}~wwWd�dS1s�wYdS).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�outfilez%write the output of infile to outfilez--sort-keys�
store_trueFz5sort the output of dictionaries alphabetically by key)�actionrr
z--no-ensure-ascii�ensure_asciiZstore_falsez(disable escaping of non-ASCII characters)�destrr
z--json-linesznparse input using the JSON Lines format. Use with --no-indent or --compact to produce valid JSON Lines output.z--indent�zJseparate items with newlines and use this number of spaces for indentation)rr	r
z--tabZstore_const�indent�	z9separate items with newlines and use tabs for indentation)rrZconstr
z--no-indentz/separate items with spaces rather than newlinesz	--compactz1suppress all whitespace separation (most compact))rr
)�	sort_keysrr)�,�:Z
separatorscss�|]}t�|�VqdS)N)�json�loads)�.0�line�r�0/opt/alt/python310/lib64/python3.10/json/tool.py�	<genexpr>As�zmain.<locals>.<genexpr>�w�
)�argparse�ArgumentParser�add_argumentZFileType�sys�stdinrZadd_mutually_exclusive_group�int�
parse_argsrrr�compactrZ
json_linesr�loadr�stdout�open�dump�write�
ValueError�
SystemExit)rr�parser�groupZoptionsZ	dump_argsrZobjs�outr�obj�errr�mains�
��
�
�
�
�
�
���
������"�r4�__main__)�__doc__r rr#Zpathlibrr4�__name__�BrokenPipeError�exc�exit�errnorrrr�<module>s>���

Filemanager

Name Type Size Permission Actions
__init__.cpython-310.opt-1.pyc File 11.99 KB 0644
__init__.cpython-310.opt-2.pyc File 2.92 KB 0644
__init__.cpython-310.pyc File 11.99 KB 0644
decoder.cpython-310.opt-1.pyc File 9.55 KB 0644
decoder.cpython-310.opt-2.pyc File 5.68 KB 0644
decoder.cpython-310.pyc File 9.55 KB 0644
encoder.cpython-310.opt-1.pyc File 10.87 KB 0644
encoder.cpython-310.opt-2.pyc File 6.65 KB 0644
encoder.cpython-310.pyc File 10.87 KB 0644
scanner.cpython-310.opt-1.pyc File 1.89 KB 0644
scanner.cpython-310.opt-2.pyc File 1.86 KB 0644
scanner.cpython-310.pyc File 1.89 KB 0644
tool.cpython-310.opt-1.pyc File 2.77 KB 0644
tool.cpython-310.opt-2.pyc File 2.48 KB 0644
tool.cpython-310.pyc File 2.77 KB 0644