Current Path: > > usr > lib64 > python3.8 > json > > > __pycache__
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-38.opt-1.pyc | File | 12610 bytes | October 17 2023 18:13:00. | |
__init__.cpython-38.opt-2.pyc | File | 3233 bytes | October 17 2023 18:13:05. | |
__init__.cpython-38.pyc | File | 12610 bytes | October 17 2023 18:13:00. | |
decoder.cpython-38.opt-1.pyc | File | 9846 bytes | October 17 2023 18:13:00. | |
decoder.cpython-38.opt-2.pyc | File | 5857 bytes | October 17 2023 18:13:05. | |
decoder.cpython-38.pyc | File | 9846 bytes | October 17 2023 18:13:00. | |
encoder.cpython-38.opt-1.pyc | File | 11173 bytes | October 17 2023 18:13:00. | |
encoder.cpython-38.opt-2.pyc | File | 6822 bytes | October 17 2023 18:13:05. | |
encoder.cpython-38.pyc | File | 11173 bytes | October 17 2023 18:13:00. | |
scanner.cpython-38.opt-1.pyc | File | 1953 bytes | October 17 2023 18:13:00. | |
scanner.cpython-38.opt-2.pyc | File | 1917 bytes | October 17 2023 18:13:05. | |
scanner.cpython-38.pyc | File | 1953 bytes | October 17 2023 18:13:00. | |
tool.cpython-38.opt-1.pyc | File | 1898 bytes | October 17 2023 18:13:00. | |
tool.cpython-38.opt-2.pyc | File | 1605 bytes | October 17 2023 18:13:05. | |
tool.cpython-38.pyc | File | 1898 bytes | October 17 2023 18:13:00. |
U e5d� � @ sj d Z ddlZddlZddlZdd� Zedkrfz e� W n. ek rd Z ze�ej � W 5 dZ[X Y nX dS )a Command-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 C s4 d} d}t j| |d�}|jddt jdd�dtjd � |jd dt jddd�dtjd � |jd dddd� |jddddd� |�� }|j}|j }|j }|j}|�� |�~ zJ|r�dd� |D �}nt� |�f}|D ] } tj| ||dd� |�d� q�W n, tk �r } zt| ��W 5 d } ~ X Y nX W 5 Q R X W 5 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�?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 formatc s s | ]}t �|�V qd S )N)�json�loads)�.0�line� r �!/usr/lib64/python3.8/json/tool.py� <genexpr>, s zmain.<locals>.<genexpr>� )� sort_keys�indent� )�argparse�ArgumentParser�add_argumentZFileType�sys�stdin�stdout� parse_argsr r r � json_linesr �load�dump�write� ValueError� SystemExit)r r �parserZoptionsr r r r! Zobjs�obj�er r r �main sD �� � �r* �__main__) �__doc__r r r r* �__name__�BrokenPipeError�exc�exit�errnor r r r �<module> s $
SILENT KILLER Tool