respect-validation/docs/rules/Json.md

29 lines
364 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# Json
- `Json()`
2015-01-30 09:40:06 +01:00
Validates if the given input is a valid JSON.
```php
v::json()->validate('{"foo":"bar"}'); // true
2015-01-30 09:40:06 +01:00
```
## Categorization
- Strings
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
- [Domain](Domain.md)
- [Email](Email.md)
- [FilterVar](FilterVar.md)
- [Phone](Phone.md)
- [VideoUrl](VideoUrl.md)