Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```