Skip to main content

Unescape json string, which is escaped for json. This is usually necessarry for webscraping.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_unescape-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file json_unescape-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: json_unescape-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for json_unescape-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1da97321fe8660ff64ed43eb74459c494730b18667944b5f450638598b4ac0
MD5 ac3e8f8b78381330a7744c86824c1167
BLAKE2b-256 9e45d343549249ef8c2baadb6edb1f0024f5e55203337e762c2ab026d7af0940

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page