Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkxce/jbad
Python JSON BAD Parser
https://github.com/dkxce/jbad
bad dkxce json parser python
Last synced: about 5 hours ago
JSON representation
Python JSON BAD Parser
- Host: GitHub
- URL: https://github.com/dkxce/jbad
- Owner: dkxce
- Created: 2023-08-02T10:10:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-02T10:16:56.000Z (over 1 year ago)
- Last Synced: 2023-08-02T11:38:25.527Z (over 1 year ago)
- Topics: bad, dkxce, json, parser, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JBAD Python JSON BAD Parser
**usage**:
- jbad.loads(...)**like**:
- json.loads(...)
- orjson.loads(...)
- ujson.loads(...)
- pd.read_json(...)
- msgspec.json.decode(...)**possibilities**:
- no quotas
- no commas
- bad strings
- bad numbers
- empty elements
- bad decimals**SAMPLE**:
```
text = """
{
0126: 0.15,,,
"XXX": .501,
YYY: +111
'timestamp': 1556283673.1523004,
'timestamd': -556283673.1523004,
"GUID": "700F5226-CB78-44F4-AC7B-C857AD569FD8",
"task_level": [1, 2, , ,, -1],
"action_status": @"started\r\nX",
"action_type": "main",
"bot": {"k": "V", , , ,,, "x": "Y", "z": "Z",}
"bot2": {"k": "V", , , ,,, "x": "Y", "z": "Z",,,}
key: "value",
@par: @'Empty',
"another_key": 123,
@"and_another": ["a", "b", "c",]
@"get_another": ["a", "b", "c",,,]
}
"""
obj = json.loads(text)
```