Whether to encode the cleaned data back into a JSON string
Returns
Data Type
Description of Returned Data
other
A PHP variable or a JSON string depending on the parameters passed.
Example
Input::json($jsonString, true)
Further Documentation:
1. If the input is a string, it first decodes the JSON string into a PHP array using json_decode.
2. Performs cleaning operations on the decoded JSON data using the recursive method.
3. Encodes the cleaned data back into a JSON string using json_encode if the $encode parameter is set to true.
4. Decodes the encoded JSON string back into either an associative array or an object, based on the value of the $associative parameter, if the $encode parameter is set to false.