Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert json to cursor
Message
De
31/10/2019 08:22:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01671750
Message ID:
01671753
Vues:
81
>>File contains invoice list in json format like:
>>
>>
{
>>    "status": "OK", "statusCode": 200, "messages": null,
>>    "data": [{
>>        "payment_type": "banktransfer", "fine": "0.200000", "quote_id": null, "order_id": null, "prepayment_id": null, "credited_invoices": [],
>>        "interested_party_address_id": 279, "project_id": 875, "currency": "EUR", "owner_id": 3, "date": "2019-03-15", "deadline": "2019-03-20",
>>    },
>>
>>
>>    {
>>        "payment_type": "banktransfer", "fine": "0.30000", "quote_id": null, "order_id": null, "prepayment_id": null, "credited_invoices": [],
>>        "interested_party_address_id": 79, "project_id": 85, "currency": "EUR", "owner_id": 3, "date": "2019-04-15", "deadline": "2019-43-20",
>>    }
>>    .... more same type elements
>>    ]
>>}
>>
>>How to convert it to FoxPro cursor ?
>>Cursor sould contain payment_type, fine, quote_id etc columns.
>
>https://github.com/VFPX/nfJson
>https://github.com/sait/vfpjson
>I never used these myself, so I can not say if they will work :-)

I use nfJson for one of my pet projects, and it would return an object containing a .data array property of objects, which can then be used for insert... name into a cursor. Rather straightforward.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform