8
votes
Vote UpVote

How not to write a parser

TURBU Tech – So if you’ve got two JSON objects, one that’s serialized as {"Value": []} and the other as { "Value": [ ] } is there any difference between them? According to my web browser, which is basically the final arbiter when it comes to what is and is not valid JavaScript, no.  But according to Delphi’s DBXJSON library, there’s a big difference: the first form deserializes into exactly what you’d expect, but the second form is not valid. I ran across this on StackOverflow a few days ago.  Turns out that the JSON parser’s whitespace handling is not correct when ...
Favorite? Off-Topic? Mason Wheeler @ 2012-09-14 01:40

Statistics

Visits: 1040
Votes: 8
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
Ericc
François
Jeroen Pluimers
Jim McKeeth
rhodydog
Wouter
Yogi Yang
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)