https://github.com/boris-code/feapson
Same as json.dumps or json.loads, feapson support feapson.dumps and feapson.loads
https://github.com/boris-code/feapson
Last synced: 10 months ago
JSON representation
Same as json.dumps or json.loads, feapson support feapson.dumps and feapson.loads
- Host: GitHub
- URL: https://github.com/boris-code/feapson
- Owner: Boris-code
- License: other
- Created: 2021-11-08T13:48:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T03:25:51.000Z (over 4 years ago)
- Last Synced: 2025-04-12T06:19:45.525Z (11 months ago)
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# feapson
Same as json.dumps or json.loads, feapson support feapson.dumps and feapson.loads
Example:
```python
>>> import feapson
>>> feapson.dumps({"a": True, "b": False, "c": [1, 2, 3]})
'{"a": True, "b": False, "c": [1, 2, 3]}'
>>> feapson.dumps({"a": True, "b": False, "c": [1, 2, 3]}, indent=4, ensure_ascii=False)
'''{
"a": True,
"b": False,
"c": [
1,
2,
3
]
}'''
>>> feapson.loads('{"a": True, "b": False, "c": [1, 2, 3]}')
{'a': True, 'b': False, 'c': [1, 2, 3]}
>>> feapson.loads('{"a": true, "b": false, "c": [1, 2, 3]}')
{'a': True, 'b': False, 'c': [1, 2, 3]}
```
Install:
```shell
pip install feapson
```