Skip to content

Kirby 5.0.4

Value::fromJson()

Creates a value object from a JSON string; returns null on error

Value::fromJson(string $json): Kirby\Cache\Value|null

Parameters

Name Type Default
$jsonrequired string no default value

Return types

Kirby\Cache\Valueornull

Parent class

Kirby\Cache\Value