class Json

JSON encoder and decoder.

Constants

FORCE_ARRAY

PRETTY

Methods

__construct()

Static class - cannot be instantiated.

static string
encode($value, $options = 0)

Returns the JSON representation of a value.

static mixed
decode($json, $options = 0)

Decodes a JSON string.

Details

at line 36
final __construct()

Static class - cannot be instantiated.

at line 48
static string encode($value, $options = 0)

Returns the JSON representation of a value.

Parameters

$value
$options

Return Value

string

at line 77
static mixed decode($json, $options = 0)

Decodes a JSON string.

Parameters

$json
$options

Return Value

mixed