jsonEncode
Description
Encodes an object format to a JSON string representation.
See 'jsonDecode' function for the json decoding function.
Input / Parameter
Name
Description
Input Type
Default
Options
Required
object
The value to be encoded.
Object
-
-
Yes
indent
Spacing indentation to be included in the output.
Number
0
-
No
Output
Description
Output Type
Returns the JSON string representation.
String/Text
Callback
N/A
Video
Coming Soon.
Example
User want to encode from string to json.
Step
Call the function. Name : Lili Gender : F
Result
Links
Last updated