YAJL_BUF_LOAD_TREE Handling Null Values
Posted: Tue Aug 10, 2021 7:25 pm
I am reading JSON using YAJL_BUF_LOAD_TREE to load the JSON and then read the data using YALJ_GET_STRING/NUMBER.
But when loading the JSON data which is having either NULL/blanks values, it is erroring out with a error message
"lexical error: invalid char in json text"
Is there a way to handling it?
But when loading the JSON data which is having either NULL/blanks values, it is erroring out with a error message
"lexical error: invalid char in json text"
Code: Select all
{"data":{
"trdate6":null,
"trdate7":null,
"trdate9":null,
"arvtime2":"09/10/2021",
"morestop2":"Yes"}}
Code: Select all
docNode = yajl_buf_load_tree(%Addr(PLPAYLOD):
%len(%trim(PLPAYLOD)):ErrMsg);
Is there a way to handling it?