json-unescape (0.0.1)
Published 2024-07-02 14:37:17 +00:00 by Hazel
Installation
pip install --index-url json-unescape
About this package
Unescape json string, which is escaped for json. This is usually necessarry for webscraping.
Json-Unescape
Unescape json string, which is escaped for json. This is usually necessarry for webscraping.
Installation
pip install json-unescape
Usage
>>> 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"}'
Requirements
Requires Python: >=3.8