learndash_is_valid_JSON( string $string = '' )
Checks whether a string is a valid JSON or not.
Parameters #
- $string
-
(string)
(Optional)
The string to check.
Default value: ''
Return #
(boolean) Returns true if the string is valid json otherwise false.