json-unescape/README.md

23 lines
430 B
Markdown
Raw Permalink Normal View History

2024-07-02 12:39:15 +00:00
# Json-Unescape
2024-07-02 14:32:44 +00:00
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"}'
```