PhpTek\JSONText\ORM\FieldType\JSONText::isValidJson
Utility method to determine whether a value is really valid JSON or not.
The Peekmo JSONStore lib won't accept normally valid JSON values like `true`, `false` & `""` so these need to be explicitly disallowed.
Signature
public function isValidJson(string
$value )
Parameters
$value
— string
Returns
- boolean
Line | Task |
---|---|
534+ | Deal with true, false and null then! |