class Json

JSON encoder and decoder.

Constants

FORCE_ARRAY

PRETTY

Methods

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 31
static string encode($value, $options = 0)

Returns the JSON representation of a value.

Parameters

$value
$options

Return Value

string

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

Decodes a JSON string.

Parameters

$json
$options

Return Value

mixed

Traits

Static class.