akheron/jansson — Issue #44: Numeric status codes in json_error_t
Author: DanielT
Created: 2011-12-29 01:56:44+00:00
State: open

I would like to be able to take different actions depending on the type of error I get from lson_loads().
Currently I detect incompletely received JSON data by checking error.position == received_len, but I would like to be able to do more than that.
For example it would be nice to be able to distinguish errors caused by the EOF check from errors triggered by JSON_REJECT_DUPLICATES from bad JSON.