AnsweredAssumed Answered

JSON obj How to extract information from object.

Question asked by CrimesTechno on Sep 8, 2017
Latest reply on Sep 11, 2017 by Menno

Hi

I'm trying to use JSON object.  I can set the Element, but I can't extract one information after.

Here is the setElement

Définir variable[$$obj_lot;

JSONSetElement ( $$obj_lot;"a" &

$noCle;  "{  \"Id_Visionnement\"  :  " & VisionnementLot Detail::Id_Visionnement & ",  \"id_Lot\"

:  "& VisionnementLot Detail::Id_Lot & "} }"; JSONObject)

 

Here is the result:

 

{"a1":{" Id_Visionnement ":8,"id_Lot ":10594},"a2":{" Id_Visionnement ":4,"id_Lot ":9362},"a3":{" Id_Visionnement ":10,"id_Lot ":8851},"a4":{" Id_Visionnement ":15,"id_Lot ":9397},"a5":{" Id_Visionnement ":82,"id_Lot ":10017},"a6":{" Id_Visionnement ":82,"id_Lot ":5984}}

 

I'm trying after to extract the information but I don't get it:

Here is my last try:

 

JSONGetElement( $$obj_lot ; "a1.Id_Visionnement").

 

Is somebody could help me?

Outcomes