function phutil_validate_json($value, $path)libphutil Technical Documentation (Core Utilities)
function phutil_validate_json($value, $path)
libphutil Technical Documentation (Core Utilities)
Produce a human-readable explanation why a value can not be JSON-encoded.
Parameters
wild | $value | Value to validate. |
string | $path | Path within the object to provide context. |
Return
string|null | Explanation of why it can't be encoded, or null. |
- Defined
- src/utils/utils.php:1368