Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is JSON and is it better than xml etc
Message
From
26/01/2019 21:39:28
 
 
To
23/01/2019 07:06:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01665642
Message ID:
01665743
Views:
99
Likes (2)
>>Hi all,
>>
>>In discussion with another developer about re-doing a system. This system interacted with a document database and the integration with the VFP app was done with calls that always returned an xml string. The other developer had mentioned using json to return back data from the server.
>>
>>I have done the wikipedia lookup and have an idea what json data looks like but have some questions:
>>
>>1) are their json parsers out there for VFP or would I have to write my own; with xml, there were the built in xml functions which I used
>
>Yes. I use the one from Marco Plaza (thanks Marco).
>
>>
>>2) does json have any advantages over xml?
>
>From a VFP perspective, no. With VFP, I prefer XML which can be more easily consumed using built-in function and classes.
>
>>
>>3) any "gotchas" to watch out for?
>>
>>Albert

Hi Cetin, thanks for using nfJson! Also ceck nfXml ( https://github.com/VFPX/nfxml ) to parse/create flawlessly complex xml objects.
Take a special look at nfXpaths() a function to get the all the xpaths in a xml doc. It's very useful , since you can pass a xPath to xmlRead()
and get the resulting node(s) as vfp object or a msxml object.
@nfoxdev
github.com/nfoxdev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform