Json()
Validates if the given input is a valid JSON.
v::json()->isValid('{"foo":"bar"}'); // true| Mode | Template |
|---|---|
default |
{{subject}} must be a valid JSON string |
inverted |
{{subject}} must not be a valid JSON string |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Strings
| Version | Description |
|---|---|
| 0.3.9 | Created |
See also: