Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert json to cursor
Message
From
31/10/2019 10:43:43
 
 
To
31/10/2019 10:29:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01671750
Message ID:
01671760
Views:
54
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform