>Hi,
>
>In one place of my app, the response of the Web API call is an "array" (I put the array in quotation marks because this is not exactly a VFP array). The "array" string looks like this:
>
>{"Version":"2.2222","Connected":true}
>
>
>I suppose I can parse this string to get the values. But I was wondering if there is a "better" way to convert this string to an array or a cursor?
>
>TIA
As the handle of the Web API data becomes more complex. you should use a JSON library. Check available offers at VFPX and elsewhere.
For instance, with Marco Plaza's nfJson library:
m.Result = nfjsonread('{"Version":"2.2222","Connected":true}')
? m.Result.version
? m.Result.connected
----------------------------------
António Tavares Lopes