Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing JSON
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
01641217
Message ID:
01641229
Vues:
66
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform