__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
���]m � @ sS d d l Z d d l Z d d l Z d d l Z d d � Z e d k rO e � d S)� Nc # C sz d } d } t j d | d | � } | j d d d d t j � d d �| j d d d d t j d � d d �| j d d d d d d d �| j � } | j p� t j } | j p� t j } | j } | �m y4 | r� t j | � } n t j | d t j �} Wn1 t k r7} z t | � � WYd d } ~ Xn XWd QRX| �. t j | | d | d d �| j d � Wd QRXd S)Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.�prog�description�infile�nargs�?�type�helpz-a JSON file to be validated or pretty-printed�outfile�wz%write the output of infile to outfilez--sort-keys�action� store_true�defaultFz5sort the output of dictionaries alphabetically by keyZobject_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&