json-tools .ru

Format Python dict online

Parses a Python literal or debug output and reprints it with indentation, one entry per line.

What formatting does

The input is parsed with ast.parse in safe mode (no code execution), and the result is reprinted with the chosen indent; a syntax error reports the exact line and column, the same way a Python traceback would.

Odoo and debug output

The formatter understands not just plain dict/list, but what actually shows up in logs: <Command.SET: 6>, datetime.datetime(...) with numeric arguments — these become readable string values instead of breaking the parse.

Format
Python → Python
Source text Paste text or upload a file
Result Type is not detected yet
Statistics appear after formatting