class JsonHelper

Methods

static array
decode(string $json)

No description

static string
encode(array $data, bool $formatted = false)

No description

static array
readFile(string $filePath)

No description

static void
writeFile(string $filePath, array $data, bool $formatted = false)

No description

Details

at line 13
static array decode(string $json)

Parameters

string $json

Return Value

array

at line 19
static string encode(array $data, bool $formatted = false)

Parameters

array $data
bool $formatted

Return Value

string

at line 30
static array readFile(string $filePath)

Parameters

string $filePath

Return Value

array

at line 39
static void writeFile(string $filePath, array $data, bool $formatted = false)

Parameters

string $filePath
array $data
bool $formatted

Return Value

void