phrz / jsonfix

Python package to autocomplete truncated JSON by closing strings, lists, objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonfix

Rough port of adhocore/php-json-fixer to Python 3 Tested with Python 3.7.2

This program can take JSON that is malformed due to being truncated and fix it.

Usage

Where jsonfix refers to the repository folder in your working directory,

python3 -m jsonfix file.json # filename(s)
cat file.json | python3 -m jsonfix - # stdin

About

Python package to autocomplete truncated JSON by closing strings, lists, objects

License:MIT License


Languages

Language:Python 100.0%