fn validate(allocator: Allocator, s: []const u8) Allocator.Error!bool

Scan the input and check for malformed JSON. On SyntaxError or UnexpectedEndOfInput, returns false. Returns any errors from the allocator as-is, which is unlikely, but can be caused by extreme nesting depth in the input.

Parameters

allocator: Allocator,
s: []const u8,