jsonencode

Convert a value to a JSON representation.


Syntax


Parameters

  • Mixed subject - The value to convert.


Result

  • String - The converted value.

Returns subject converted into JSON format.