Andy Whitcombe
New Member
Hi,
Having a complete mind blank on something....
Started using Progress.Json.ObjectModel.*. earlier today...
Example as follows
Output is
I don't want the \ before each of the / in my file.
I have tried a number of different ways; I am sort of hoping someone will point out the really obvious flaw
Thanks
Andy
Having a complete mind blank on something....
Started using Progress.Json.ObjectModel.*. earlier today...
Example as follows
Code
USING Progress.Json.ObjectModel.*.
DEFINE VARIABLE oJson AS JsonObject NO-UNDO.
DEFINE VARIABLE oData AS JsonObject NO-UNDO.
oJson = NEW JsonObject().
oData = NEW JsonObject().
oData:ADD("url","BBC - Home").
oJson:ADD("data", oData).
oJson:WriteFile("c:\temp\test2.json", TRUE,"UTF-8").
Output is
{
"data": {
"url": "http:\/\/www.bbc.co.uk\/"
}
}
I don't want the \ before each of the / in my file.
I have tried a number of different ways; I am sort of hoping someone will point out the really obvious flaw
Thanks
Andy
Last edited: