Json

  • v::json()

Validates if the given input is a valid JSON.

v::json()->validate('{"foo":"bar"}'); // true

See also: