thx very much
then I'll try the YAJL to analysis the respondy
Search found 5 matches
Re: http_req
i just want to dsply the responsbody to verify the results
Code: Select all
dsply %size(%trim(responseBody)); // display the json body size
dsply %subst(%trim(res: 1 :50);
Re: http_req
i'm sorry, i set parameter of ResultStmf is *OMIT
i code like this could work,the response could display the json result
thank you very much!
i code like this could work,the response could display the json result
thank you very much!
Code: Select all
%size(%trim(responseBody ))
Re: http_req
Thanks for your reply!
it can works using both parameters ,but i don't know hot to parse the responseBody like json body .
it can works using both parameters ,but i don't know hot to parse the responseBody like json body .
http_req
Dear
When using http_req, the "File to receive" function works fine, but how can I use the "String to receive" option to receive a JSON body like this?
{
"encryptString": "138",
"hexString": "5BF28981860"
}
my code
D rc s 10I 0
D msg s 25A
D url1 s 300A
D url2 s 300A
D parm1 s 100A
D ...
When using http_req, the "File to receive" function works fine, but how can I use the "String to receive" option to receive a JSON body like this?
{
"encryptString": "138",
"hexString": "5BF28981860"
}
my code
D rc s 10I 0
D msg s 25A
D url1 s 300A
D url2 s 300A
D parm1 s 100A
D ...