Hi, I am trying to retrieve a json file into a variable with the following statement
jsonData = http_string( 'GET': url);
It succesfully executes the statement, but when I try and parse the string with the following I get and error
docNode = yajl_buf_load_tree( %addr(jsonData: *data)
: %len(jsonData)
: ErrMsg );
The result of ErrMsg is parse error: premature EOF
The result that I am retrieving is quite large and if I paste the result in to a text file, it is about 400kb,
How an I suppose to do this. Keep in mind that I am not an expert in RPG or using YAJL.
Thanks
jsonData = http_string( 'GET': url);
It succesfully executes the statement, but when I try and parse the string with the following I get and error
docNode = yajl_buf_load_tree( %addr(jsonData: *data)
: %len(jsonData)
: ErrMsg );
The result of ErrMsg is parse error: premature EOF
The result that I am retrieving is quite large and if I paste the result in to a text file, it is about 400kb,
How an I suppose to do this. Keep in mind that I am not an expert in RPG or using YAJL.
Thanks
Comment