Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread JSON Parser Unit
Sat, Mar 24 2018 6:25 AMPermanent Link

Walter Matte

Tactical Business Corporation

I went looking for a simple JSON parser and found one and converted it for EWB use.
There were a couple of bugs I found and fixed and convert from callback event driven to storing the
parsed outcome in TStringList.

If you enhance or correct anything - please post your code back here for all of us.  

Walter

Credit to:
//Copyright (c) 2012 Dmytro Lystopad
//NiveusPrime@google.com
//This library is free software;
//you can redistribute it and/or modify it
//under the terms of the MIT License http://en.wikipedia.org/wiki/MIT_License



Attachments: JSON.zip
Mon, Mar 26 2018 3:25 AMPermanent Link

Uli Becker

> I went looking for a simple JSON parser and found one and converted it for EWB use.
Thank you very much, Walter.

Uli
Fri, Jun 8 2018 2:29 AMPermanent Link

ooptimum

Why would you need your own implementation while there is a standard JSON object in all modern browsers? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON



Attachments: ECMA_Json.wbs
Tue, Jun 12 2018 2:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Why would you need your own implementation while there is a standard JSON object in all modern browsers? >>

Because the JSON object creates new instances automatically, which is not what you always want.  So, it's either use the built-in JSON parser and create objects that you'll just end up discarding, or parse it manually and obtain more control over the parsing process.

Tim Young
Elevate Software
www.elevatesoft.com
Image