A parser for JSON that can start at an arbitrary point in the file
Project description
jsua, pronounced Joshua, is a streaming sax-like parser for JSON files. It’s special because it doesn’t require you to start at the beginning of a JSON stream. You can start anywhere, and it will eventually start spitting out events.
Usage
from jsua import SynchronizingParser
from io import StringIO
json = StringIO('{"hello": "world"}')
parser = SynchronizingParser(json)
for state, event, value in parser.parse():
print(state, event, value)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsua-0.0.2.tar.gz
(5.3 kB
view details)
Built Distribution
jsua-0.0.2-py3-none-any.whl
(7.6 kB
view details)
File details
Details for the file jsua-0.0.2.tar.gz
.
File metadata
- Download URL: jsua-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e340b07ac6a03802323e6e2006e4d663c91bad3e248f9760db302026ecd49439 |
|
MD5 | 0725f2c9712fa365fb0d61bf14133325 |
|
BLAKE2b-256 | 90e5988c4934ed86119ff65155303a7fd7265d464e86f182c9f8520e7c90002a |
File details
Details for the file jsua-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: jsua-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fdbbd27bd40305ac49457fb14762e9b5d98780664870cdf802153a5e90f3f1e |
|
MD5 | 42c07a74ef4005cfc72569c36acab300 |
|
BLAKE2b-256 | 57f9ceb0b29685fee54e9e0fdeb29a1815cf63e1395e43a2c5848f96b901bb67 |