JSON parser

This forum is for eXpress++ general support.
Post Reply
Message
Author
gnewcomb
Posts: 17
Joined: Thu Jan 28, 2010 7:06 pm
Location: Colorado Springs, Colorado USA

JSON parser

#1 Post by gnewcomb »

What are the currently available options for parsing a JSON string? Did DC_JS2ObjectTree() ever materialize or is there something else?

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: JSON parser

#2 Post by Tom »

Var2JSON is a(n undocumented) part of Xbase++ 2.0, and they're currently working on JSON2Var, as the rumors say. Before that is finished, you may create you own function, based on DC_TokenArray and others. ;)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: JSON parser

#3 Post by rdonnay »

Also, look at DC_Js2Var(), DC_Js2Array(), DC_Value2Js(), DC_Array2Js(), DC_Object2Js(), DC_Js2Object(), DC_Object2Xml(), DC_Array2Xml(), DC_Value2Xml().

The source is in _DCFUNCT.PRG>
The eXpress train is coming - and it has more cars.

Post Reply