learndash_is_valid_JSON( string $string = '' )
Checks whether a string is a valid JSON or not.
Description Description
Parameters Parameters
- $string
-
(Optional) The string to check.
Default value: ''
Return Return
(boolean) Returns true if the string is valid json otherwise false.
Source Source
File: includes/ld-misc-functions.php