Thanks Alan - I'll try that on some real JSON I am working with

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Alan Bourke
Sent: 16 November 2018 12:33
To: [email protected]
Subject: Re: JSON for Visual FoxPro

Sent by an external sender
------------------------------

nfjson seems okay with it if you strip out the escaping on the double quotes.

x = '{\"code\":\" ERROR\",\"message\":\"Message 
\",\"errors\":[{\"field1\":\"FIELD\",\"value\":\"VALUE\"}]}'
y=chrtran(x,"\","") 
oJson = nfJsonRead(y)


-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/sn6pr02mb5552ceda423590a735ace4b6a1...@sn6pr02mb5552.namprd02.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to