Parse incomplete or partial json
Project description
PartialJson
Parse Partial and incomplete JSON in python
Parse Partial and incomplete JSON in python with just 3 lines of python code.
Example
from partialjson.json_parser import JSONParser
parser = JSONParser()
incomplete_json = '{"name": "John", "age": 30, "is_student": false, "courses": ["Math", "Science"'
print(parser.parse(incomplete_json))
# {'name': 'John', 'age': 30, 'is_student': False, 'courses': ['Math', 'Science']}
Installation
$ pip install partialjson
Also can be found on pypi
How can I use it?
- Install the package by pip package manager.
- After installing, you can use it and call the library.
Star History
Issues
Feel free to submit issues and enhancement requests or contact me via vida.page/nima.
Contributing
Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Update the Version inside init.py
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
partialjson-0.0.8.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file partialjson-0.0.8.tar.gz
.
File metadata
- Download URL: partialjson-0.0.8.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91217e19a15049332df534477f56420065ad1729cedee7d8c7433e1d2acc7dca |
|
MD5 | 3a34eb8a3c270c8ab43730e049610c83 |
|
BLAKE2b-256 | 5db259669fdc3ecbc724a077c598c1c9b4068549af0cd8c3b5add9337bd4d93a |
File details
Details for the file partialjson-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: partialjson-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c6c60944137f931a7033fa0eeee2d74b49114f3d45c25a560b07a6ebf22b76 |
|
MD5 | 9d3180f28240580bdac2af872ab8efd9 |
|
BLAKE2b-256 | 8afb453af21468774dbd0954853735a4fc7841544c3022ff86e5d93252d7ea72 |