Hello list,

{"sentence":"value string with \"escaped quotation marks\" is valid json"}

is valid json, but parseJson returns 'BAD JSON'.

Any idea for an simple way to circumvent that issue?

Thank you in advance!


== I tried with picoLisp 16.06.0

(load "@lib/json.l")
# this works fine:
(parseJson "{\"sentence\":\"value string with 'single quotes' is valid json\"}")
-> (("sentence" . "value with 'single quotes' is valid json"))

But I don't know how to escape the double quotes (QUOTATION MARK) to use instead of the single quotes.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to