Validates if a string is in valid JSON format.
input
: The original input text or dataoutput
: The string to be validated as JSONexpectedOutput
: The expected output to compare against.input
, output
, expectedOutput
) can be marked as optional.validate
function can be a boolean, string, or a number.Result
: Boolean (true
or false
) | string | numberAssuming this evaluator returns a boolean
validate
.