P_Jansen_8916

Reading JSON object ?

Discussion created by P_Jansen_8916 on Apr 3, 2017
Latest reply on Apr 26, 2017 by P_Jansen_8916
Hi

I have an external JSON object. For example;
{ "firstname":"John", "lastname":"Carter", "age":30 }
Is there a possibilities to use this in a JOB or SCRIPT.

:SET &JSON_OBJECT#={ "firstname":"John", "lastname":"Carter", "age":30 }
:SET &FIRST# = GET_JSON_VAR(&JSON_OBJECT#,"firstname")
:SET &LAST# = GET_JSON_VAR(&JSON_OBJECT#,"lastname")
:SET &AGE# = GET_JSON_VAR(&JSON_OBJECT#,"age")

I know there isn't a function like GET_JSON_VAR
But is there another way to 'read' items within a JSON object

Thanks in advanced

Outcomes