Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing JSON
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
01641217
Message ID:
01641229
Views:
65
Your JSON fails on JSONLint http://jsonlint.com/

This, however, is valid:

{"sigl":["KNO VA","A-MM"]}

and nfJson reads it correctly:
lo = nfJsonRead('{"sigl":["KNO VA","A-MM"]}')
hth,

Hank


>Hi there,
>
>I am trying to parse a json-file trying the different json-parsers out there like the nfjson-parser on vfpx or craig boyds parser founf at his blog. But every parser fails when it comes to a field like this;
>
>
>"sigl":["KNO VA","A-MM"]
>
>
>which is an array without field-names. The first of my items (records) containing the field is interpreted correctly but all other
>ones are false interpreted (don't contain the information which is in the json-string). As the parser I use in my net-apps does this correctly I wonder why this is not working with the vfp-parsers and if somebody knows a working parser for vfp.
>
>Best regards and thanks in advance
>
>Thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform