jsonEncode

Description

Encodes an object format to a JSON string representation.

See 'jsonDecode' function for the json decoding function.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

object

The value to be encoded.

Object

-

-

Yes

indent

Spacing indentation to be included in the output.

Number

0

-

No

Output

DescriptionOutput Type

Returns the JSON string representation.

String/Text

Callback

N/A

Video

Coming Soon.

Example

User want to encode from string to json.

Step

  1. Call the function. Name : Lili Gender : F

Result

Last updated