Hi Olaf, Rick, On Sun, Oct 30, 2016 at 07:12:31PM -0400, [email protected] wrote: > On Sun, 30 Oct 2016 23:23 +0100, O.Hamann wrote: > > -> (("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. > .. > : (parseJson "{\"sentence\":\"value string with \\\"double quotes\\\" is > valid json\"}") > -> (("sentence" . "value string with \"double quotes\" is valid json"))
Haha, I should read mails more throughly. My answer was for 'readJson', but you asked for 'parseJson'. Rick's answer is correct. The rule is simply that in a string (transient symbol) all meta-characters '"', '^' and '\' must be escaped. ♪♫ Alex -- UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
