JsonUtility

Format JSON With PHP.

see
author

Dave Perrett

Methods

Indents a flat JSON string to make it more human-readable.

prettify(string $json) : string
static

Arguments

$json

string

The original JSON string to process.

Response

string

Indented version of the original JSON string.

makeConstant

makeConstant(string $className, string $value) : \StdClass
static

Arguments

$className

string

$value

string

Response

\StdClass