Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert json to cursor
Message
De
31/10/2019 10:43:43
 
 
À
31/10/2019 10:29:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01671750
Message ID:
01671760
Vues:
55
Hi!

>I have no idea what you are doing here, specially the 2nd call - your merged text is definitely not json.

It defines mappiing between json properties and cursor fields. Without it proper cursor is not created.

>I'd call nfJsonRead(FILETOSTR('myjson.json') ) and it would return an object containing the properties as >defined in the outer object in your json file. Then one of the properties would be a .data array of objects
>(one per row).

This requires creating cursor from objects manually. Method which I call does this itself, no need for additional code.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform