grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a ´i ã @stddlZddlZddlZddlmZdd„Zedkrpz eƒWn0eynZze  ej ¡WYdZ[n dZ[00dS)éN)ÚPathc Csúd}d}tj||d�}|jddtjdd�dtjd �|jd dtd dd �|jd d ddd�|jddddd�|jdd ddd�| ¡}|jddtdd�|jddddd d!�|jd"dddd#d!�|jd$d d%d&�|  ¡}|j |j |j d'œ}|j �rd|d<d(|d)<|j�Ü}zœ|j�r$d*d+„|Dƒ}n t |¡f}|jdu�rDtj}n|jjd,dd�}|�:} |D]$} tj| | fi|¤Ž|  d-¡�q^Wdƒn1�sš0YWn.t�yÔ} zt| ƒ‚WYd} ~ n d} ~ 00Wdƒn1�sì0YdS).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)Úactionr r z--no-ensure-asciiÚ ensure_asciiÚ store_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)r r r z--tabÚ store_constÚindentú z9separate items with newlines and use tabs for indentation)rrÚconstr 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ú!/usr/lib64/python3.9/json/tool.pyÚ Aózmain..ÚwÚ )ÚargparseÚArgumentParserÚ add_argumentÚFileTypeÚsysÚstdinrÚadd_mutually_exclusive_groupÚintÚ parse_argsrrrZcompactrZ json_linesrÚloadr ÚstdoutÚopenÚdumpÚwriteÚ ValueErrorÚ SystemExit) rrÚparserÚgroupÚoptionsZ dump_argsrZobjsÚoutr ÚobjÚerrrÚmainst ýý ÿ ÿ ÿ ÿ ÿ þÿý  2r:Ú__main__) r$rr(Úpathlibrr:Ú__name__ÚBrokenPipeErrorÚexcÚexitÚerrnorrrrÚ s >