7 releases (4 breaking)

0.5.3 Nov 26, 2024
0.5.2 Nov 26, 2024
0.4.2 Nov 24, 2024
0.3.1 Nov 22, 2024
0.1.1 Nov 21, 2024

#807 in Parser implementations

Download history 304/week @ 2024-11-18 293/week @ 2024-11-25 22/week @ 2024-12-02 30/week @ 2024-12-09

649 downloads per month

MIT license

19KB
481 lines

partial-json-fixer

This is a zero dependency partial json fixer. It is very lenient, and will accept some erroneous JSON too. For example, {key: "value"} would be valid.

This can be used to parse partial json coming from a stream.

Installation

This is available on crates.io as partial-json-fixer

cargo add partial-json-fixer

Usage

The fix_json function accepts a partial json string and returns a complete json string.

Documentation

See documentation on docs.rs


lib.rs:

Partial JSON fixer

This is a zero dependency partial json fixer. It is very lenient, and will accept some erroneous JSON too. For example, {key: "value"} would be valid.

This can be used to parse partial json coming from a stream.

No runtime deps