Hi All,
I am using YAJL for parsing JSON data (STDIN) using the tree method.
When I do the post with headers "content-type application/json" or "content-type application/json;charset-utf-8".
The parser gives me an error "lexical error: invalid char in json text".
I receive this error, both times when I use yajl_stdin_load_tree('*OFF' : errMsgstr) or yajl_stdin_load_tree('*OFF' : errMsgstr).
But when I tried the same after removing headers, it just worked fine.
Is this the normal behavior or something wrong with my code.
Thanks,
AS_Developer
I am using YAJL for parsing JSON data (STDIN) using the tree method.
When I do the post with headers "content-type application/json" or "content-type application/json;charset-utf-8".
The parser gives me an error "lexical error: invalid char in json text".
I receive this error, both times when I use yajl_stdin_load_tree('*OFF' : errMsgstr) or yajl_stdin_load_tree('*OFF' : errMsgstr).
But when I tried the same after removing headers, it just worked fine.
Is this the normal behavior or something wrong with my code.
Thanks,
AS_Developer
Comment