Table of Contents
Methods
-
decode()
: null|array<string|int, mixed>
-
encode()
: null|string
-
parseFile()
: null|array<string|int, mixed>
-
verify()
: bool
-
verifyAndDecode()
: null|array<string|int, mixed>
decode()
public
static decode(string $jsonString[, bool $asArray = true ]) : null|array<string|int, mixed>
Parameters
-
$jsonString
: string
-
-
$asArray
: bool
= true
-
Return values
null|array<string|int, mixed>
encode()
public
static encode(array<string|int, mixed> $toEncode[, bool $prettyPrint = false ]) : null|string
Parameters
-
$toEncode
: array<string|int, mixed>
-
-
$prettyPrint
: bool
= false
-
Return values
null|string
parseFile()
public
static parseFile(string $fullFilePath) : null|array<string|int, mixed>
Parameters
-
$fullFilePath
: string
-
Return values
null|array<string|int, mixed>
verify()
public
static verify(string $jsonString) : bool
Parameters
-
$jsonString
: string
-
verifyAndDecode()
public
static verifyAndDecode(string $jsonString[, bool $asArray = true ]) : null|array<string|int, mixed>
Parameters
-
$jsonString
: string
-
-
$asArray
: bool
= true
-
Return values
null|array<string|int, mixed>