learndash_is_valid_JSON

learndash_is_valid_JSON( string $string = '' )

Checks whether a string is a valid JSON or not.


Description #


Parameters #

$string

(string) (Optional) The string to check.

Default value: ''


Return #

(boolean) Returns true if the string is valid json otherwise false.


Source #

File: includes/ld-misc-functions.php