관리-도구
편집 파일: tool.cpython-312.pyc
� �Q�f � � � d Z ddlZddlZddlZddlmZ d� Zedk( r e� yy# e$ r&Z ej e j � Y dZ [ ydZ [ ww xY w)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 � � d} d}t j | |�� }|j ddt j d�� dt j � � |j d dt dd � � |j dd dd�� |j dddd�� |j dd dd�� |j � }|j ddt d�� |j ddddd �!� |j d"ddd d#�!� |j d$d d%�&� |j � }|j |j |j d'�}|j r d |d<