Documentation

Json
in package

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>

Methods

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
Return values
bool

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>

        
On this page

Search results