json error - part-cw/lambdanative GitHub Wiki

(json-error? obj)

Returns #t if argument is a JSON error oject, #f otherwise

Parameter Description
obj Object to check

Example

> (json-error? (json-decode "{ \"test\": true }"))
#f
> (json-error? (json-decode "test"))
#t