Function

json_encode

Synopsis

json_encode(mixed, mixed ...): mixed

Area
Runtime\PS\Core\JSON\json_encodeareas

Description

json_encode returns the JSON encoding of $value. It takes $flags and ignores it because the encoding is not configurable, writes a forward slash as itself, and raises an error on an encoding failure where php returns false.

Usage

$value = json_encode($arguments);
$fn = json_encode(...);

See also