[SOLVED] JSONTOSTRUCT
Author: fearandir@gmail.com (fearandir)
Hello. We are dealing with a restful ws that returns a JSON object. I am trying to transform the JSON to a STRUCT sctructure but, with no success.... variables STRING vs_url, vs_head, vs_boby, vs_resp STRUCT VST_STRUCT, vst_struct1, vst_struct2, vst_struct3 endvariables vs_url = "http://services.groupkt.com/country/get/iso2code/ES" activate "UHTTP".Send(VS_URL, "GET" , " " , " " , vs_head, vs_boby, vs_resp) if (VCBODY!="") jsonToStruct VST_STRUCT VCBODY message $procReturnContext message $STATUS message VST_STRUCT vst_struct1 = VST_STRUCT{"id"} endif In debugging i see this: if (VCBODY!="") ... done done message $procReturnContext message $STATUS message VST_STRUCT vst_struct1 = VST_STRUCT{"id"} endif So...How am I wrong ? Thanks in advance, Sergio

And if you have any further questions concerning jsonToStruct then let us know.
Daniel



