generated from Hazel/python-project
feat: added documentation
This commit is contained in:
parent
adef56790f
commit
96bb1fce8e
19
README.md
19
README.md
@ -1,3 +1,22 @@
|
|||||||
# Json-Unescape
|
# Json-Unescape
|
||||||
|
|
||||||
Unescape json string, which is escaped for json. This is usually necessarry for webscraping.
|
Unescape json string, which is escaped for json. This is usually necessarry for webscraping.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install json-unescape
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```python
|
||||||
|
>>> from json_unescape import escape_json, unescape_json
|
||||||
|
|
||||||
|
>>> escape_json('{"foo": "bar,,,eee"}')
|
||||||
|
'{"key": "{\\"foo\\": \\"bar,,,eee\\"}"}'
|
||||||
|
|
||||||
|
>>> unescape_json(escape_json('{"key": "{\\"foo\\": \\"bar,,,eee\\"}"}'))
|
||||||
|
'{"foo": "bar,,,eee"}'
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user