Data Structure question in receiving json message using YAJLINTO
Posted: Fri Dec 30, 2022 5:18 pm
Hi:
I am trying to construct the data structure, output, to receive the json format you see below at the bottom using
DATA-INTO output %DATA(REPLY) %PARSER('YAJLINTO'); and it is not working.
what am I doing wrong here with the data structure?
Thanks
Paul
//Output Response Structure
dcl-ds output QUALIFIED;
dcl-ds result DIM(1);
Import_Result CHAR(10);
Request_Type CHAR(30);
Response CHAR(30);
end-ds;
end-ds;
======================================================
{
"result":[
{
"Import Result":"Success",
"Request Type":"Inbound Order",
"Response":"Open"
}
]
}
I am trying to construct the data structure, output, to receive the json format you see below at the bottom using
DATA-INTO output %DATA(REPLY) %PARSER('YAJLINTO'); and it is not working.
what am I doing wrong here with the data structure?
Thanks
Paul
//Output Response Structure
dcl-ds output QUALIFIED;
dcl-ds result DIM(1);
Import_Result CHAR(10);
Request_Type CHAR(30);
Response CHAR(30);
end-ds;
end-ds;
======================================================
{
"result":[
{
"Import Result":"Success",
"Request Type":"Inbound Order",
"Response":"Open"
}
]
}