Releases: half-pie/half-json
Releases · half-pie/half-json
add cases
support half parse case
case 1: 1, 2 --> [1, 2]
case 2: "a": --> {"a":null}
caes 3: {}] --> [{}]
fix command line bug && result.success
Merge pull request #8 from half-pie/try-fix-stop fix: fix bug && add feature
0.1.2: Merge pull request #6 from half-pie/use-decoder
usage like this.
In [11]: from half_json.core import JSONFixer
In [12]: f = JSONFixer(max_try=100)
In [13]: line = '[{a'
In [14]: f.fix(line)
Out[14]: FixResult(success=True, line='[{"a":null}]', origin=False)
In [15]:
TODO: add click for command jsonfixer
add JSONFixer
Merge pull request #4 from half-pie/from-head use JSONFixer