Unescape json string, which is escaped for json. This is usually necessarry for webscraping.
Go to file
2024-07-02 16:36:21 +02:00
.vscode Initial commit 2024-07-02 12:39:15 +00:00
json_unescape bump version 2024-07-02 16:36:21 +02:00
.gitignore Initial commit 2024-07-02 12:39:15 +00:00
LICENSE Initial commit 2024-07-02 12:39:15 +00:00
pyproject.toml feat: implemented functions 2024-07-02 16:30:25 +02:00
README.md feat: added documentation 2024-07-02 16:32:44 +02:00
release feat: added release script 2024-07-02 16:35:14 +02:00

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"}'