Parse a buffer to determine if it contains a valid JSON document.
See core_json.h for docs.
Verify that the entire buffer contains exactly one scalar or collection within optional whitespace.