관리-도구
편집 파일: tool.cpython-310.pyc
o 6��f � @ s| d Z ddlZddlZddlZddlmZ dd� Zedkr<ze� W dS ey; Z z e� e j� W Y dZ [ dS dZ [ ww 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 r�d |d<