Thanks Alan - I'll try that on some real JSON I am working with
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Alan Bourke Sent: 16 November 2018 12:33 To: profoxtech@leafe.com 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)