Skip to main content

Library to help parsing broken and invalid JSON.

Project description

parse_broken_json

Small lib to help parsing broken or invalid JSONs

It only consists of one function:

parse_broken_json(text: str, allowed_keys: list[str]) -> Any:

text is the json to be parsed, allowed_keys are the keys allowed on the JSON nodes.

Internally, this library uses the interpreter pattern.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

parse_broken_json-0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file parse_broken_json-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for parse_broken_json-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d7fb7942e1d82347f40981cb0dcf228d47bb6c231b2e043eb1b2a73995ceb2
MD5 5151feef2c13441ffccf0a391a322c1e
BLAKE2b-256 9ccdf6e901713c13408269cc2630e9d87a8eac9741d48aa353dcefd496badfa9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page