I have a response variable like
for success: {"ver":"2.0","result":{},"id":27}
for Failure: {"ver":"2.0","error":{},"id":27}
which’s of Spin JSON type.
var isSuccess = resp.prop('result');
When I try to run this code for error response it’s giving me
SPIN/JACKSON-JSON-01004 Unable to find 'result'
Can you guys please help to find the existance of the prop in SpinJSON?