Just to rephrase your issue:
- you expect a JSON array of JSON objects [{..},{..},{..} ]
- but you get a JSON object containing that array {"cursos": [{..},{..},{..} ]}
;; asssumptio input holds the received obj
set jobj={}.%FromJSON(input) ; convert to obj
set jarray=jobj.%Get("cursos") ; content of "cursos" = [..]
set output=jarray.%ToJSON() ; convert to string
docu: %Library.DynamicObject
- Log in to post comments
.png)
.jpg)