What do you get when you try it? I believe that it'll just return NULL when it can't parse the json message. Do you get something else?
If you need more detail about where the error happened you can use json_tokener_parse_ex() and the char_offset field in the json_tokener object.
Also, there's a json_tokener_get_stack() function to generate a friendlier "path" within the message where the error happened.
Eric