Discussions relating to the ScottKlement.com port of the open source YAJL JSON Reader/Generator. This includes the YAJL tool as well as the YAJLR4, YAJLGEN, YAJLINTO and YAJLDTAGEN add-ons from ScottKlement.com. http://www.scottklement.com/yajl/
we have a json variable with length more than 65535 (this json variable is the response of a web service !) ; when we try to run "docNode = yajl_buf_load_tree(%addr(json:*data) :%len(%trimr(json)):errMsg ); " in the docNode we find *NULL . The problem is the variable length ? how we can solve this problem ?
Thanks in advance
Gio
Json Example
P.S. is not important to import the encoded data
I tried your JSON document with yajl_buf_load_tree, and it worked perfectly for me.
Something is wrong with your code that reads or the json and feeds it into yajl. Since we have no idea how your code works, we can't begin to help you. Provide a complete program that reproduces the problem so we can try it ourselves.