관리-도구
편집 파일: tool.cpython-39.pyc
a R�f � @ sx d Z ddlZddlZddlZddlmZ dd� Zedkrtz e� W n0 eyr Z ze� e j� W Y dZ [ n dZ [ 0 0 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) � N)�Pathc C s� d} d}t j| |d�}|jddt jdd�dtjd � |jd dtdd d � |jdd ddd� |jddddd� |jdd ddd� |�� }|jddtdd� |jddddd d!� |jd"ddd d#d!� |jd$d d%d&� |� � }|j |j|jd'�}|j �rd |d<