Added some extra context for testing
Added isNotNull and isJson checks
Now specifically checking for JSON, not any JavaScript object