Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSONFox Library 1

Status
Not open for further replies.

Irwin1985

Programmer
Feb 2, 2017
44
ES
Hi everyone!

I've rewritten the JSONFox library using the 'Recursive Descent Parsing' approach and the result was pretty cool. Now you can use it as a compiled application by issuing the following:

Code:
Do LocFile("JSONFox", "app")

This new version is full compatible with the old one 1.9 specially Decode() and Encode() functions that now they are Parse() and Stringify() respectively.

A new property called 'json' was added to the _screen global object after 'Do JSONFox.app' statement.

Code:
obj = _Screen.Json.Parse('{"foo": "bar"}')
?obj.foo


The Stringify() function formats either an object or a string into a legible JSON string representation.

The built-in function JSONViewer() open a JSON viewer form useful for debugging purposes.

See more details on:
A team is only pieces that you exchange until you finish the work, it is efficient, it works.
 
Thanks.

More than once I actually did use JS itself for JSON deserializing, especially when the Web and JS was the context anyway. But also used for example, to iterate a series of test cases given for fiscal data signing /cryptography in the form of JSON. I see you know nftools. What was the motivation to do another JSON lib with JSONFox? Combinig it with XML, too?

You might want to connect to some people on the levelextreme.com forum. One is working on a fast string FLL that got a response from Rick Strahl asking about performance for a certain type of JSON parsing, character by character, for which VFPs substring() is a big punishment of parsing performance. You're not alone.

Bye, Olaf.



Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top