Subject Re: xb2net using json.
From Andreas Gehrs-Pahl <Andreas@AbsoluteSoftwareLLC.com>
Date Sat, 5 Oct 2019 20:11:31 -0400
Newsgroups xb2net

Guillermo,

>Unfortunately, I am working with xbase Version 1.90.355 and xb2net 3.6.01
>According to your help, try using xbCPConvert function provided by xb2net,
>but it didn't work

You could write your own conversion program or you could use the Chilkat
ActiveX DLL. The JsonArray and JsonObject Classes don't require a License,
so they can be used for free.

Download and install the 32 bit ActiveX version.

Then you can use the following code:

cJson := '{"Name": "Andr\u00e9s"}'

oJson := CreateObject("Chilkat_9_5_0.JsonObject")

oJson:Load(cJson)

? oJson:StringAt(0)        ==> Andrés
? oJson:StringOf("Name")   ==> Andrés

You can download Chilkat here: https://www.chilkatsoft.com/downloads.asp

And the Active-X documentation (for JsonObject) is here:

https://www.chilkatsoft.com/refdoc/xChilkatJsonObjectRef.html

You can use the (Visual FoxPro) Examples for code similar to Xbase++.

Hope that helps,

Andreas
--
Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[F]:   https://www.facebook.com/AbsoluteSoftwareLLC

Recent messages in this thread
 
-# xb2net using json. Guillermo <> 28-Sep-2019 04:10 pm
.-# Re: xb2net using json. Andreas Gehrs-Pahl 28-Sep-2019 06:01 pm
..-# Re: xb2net using json. Guillermo <> 04-Oct-2019 04:58 pm
...\# Re: xb2net using json. (Current message) Andreas Gehrs-Pahl 05-Oct-2019 08:11 pm