go to post Luiz Henrique C... · Mar 8, 2021 how could I do it in array cases inside the Json object? ex: {produto:"CHP0001",Local:[{IDMV: "000000001",LOTE: "",DtFabric: "null",DtVenc: "null",Atributo06: "0000000002",Atributo07: "",QtdeDisp: "10.00000",QtdeAloc: "0.00000",QtdeSep: "0.00000",QtdeTotal: "10.00000",Status: "OK",Motivo: ""}]} DO ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(json,"",.pObject,"")pObject=<OBJECT REFERENCE>[7@%ZEN.proxyObject]+----------------- general information ---------------| oref value: 7| class name: %ZEN.proxyObject| reference count: 3+----------------- attribute values ------------------| %changed = 1| %data("Local") = "6@%Library.ListOfObjects"| %data("produto") = "CHP0001"| %index = ""+----------------------------------------------------- if i, ZW pObject.produto -> "CHP0001" OK, but!ZW pObject.Local<OBJECT REFERENCE>[6@%Library.ListOfObjects]+----------------- general information ---------------| oref value: 6| class name: %Library.ListOfObjects| reference count: 4+----------------- attribute values ------------------| Data(1) = ""| ElementType = "%RegisteredObject"| Oref(1) = "5@%ZEN.proxyObject"| Size = 1 <Set>+----------------------------------------------------- how can I get the values contained in the array now?
go to post Luiz Henrique C... · Mar 8, 2021 this is exactly what I needed, thank you very much for your help!