How can I escape a string for usage within a json document?
Something like:
notEscaped = '"/\""\\'
escaped = jsonEscape(notEscaped)
newNotEscaped = jsonUnEscape(escaped)
Here are some of the references I've looked at:
How can I escape a string for usage within a json document?
Something like:
notEscaped = '"/\""\\'
escaped = jsonEscape(notEscaped)
newNotEscaped = jsonUnEscape(escaped)
Here are some of the references I've looked at:
You can use python's standard json library
import json
json.dumps(myString)