Hello. I have just started using the your YAJL routines, working with RPGLE.
So, please pardon if I am missing some basics here.
I am receiving the below output after axiscTransportReceive in the response string.
"{\n "message" : "NOT_EXISTS_MATCHED_DATA",\n "code" : "SMC_0104"\n}"
Then I do a yajl_string_load_tree on this response string to get the parent node. Works fine till here.
But when I doyajl_object_find for 'message' in this parent node, it returns a *NULL pointer.
So I am not able to exact the message text. as a solution, I stripped the /n from the response string using %scanrpl.
This does remove the /n, but then the yajl_string_load_tree fails with errmsg "Parse error: trailing garbage".
Could you please advice on this.
Thanks in advance for your help!!!
So, please pardon if I am missing some basics here.
I am receiving the below output after axiscTransportReceive in the response string.
"{\n "message" : "NOT_EXISTS_MATCHED_DATA",\n "code" : "SMC_0104"\n}"
Then I do a yajl_string_load_tree on this response string to get the parent node. Works fine till here.
But when I doyajl_object_find for 'message' in this parent node, it returns a *NULL pointer.
So I am not able to exact the message text. as a solution, I stripped the /n from the response string using %scanrpl.
This does remove the /n, but then the yajl_string_load_tree fails with errmsg "Parse error: trailing garbage".
Could you please advice on this.
Thanks in advance for your help!!!
Comment