Is there a way to verify that a given input is indeed valid JSON?
I'm able to guard against the parsed value not being the object I expect, but not against it not being JSON at all:
let body = <JSON.Value>JSON.parse(text);
if (body != null && body.isObj) {