ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Group.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class Group
27{
35 public function json(int $max_depth = Json::DEFAULT_MAX_DEPTH): Transformation
36 {
37 return new Json($max_depth);
38 }
39}
json(int $max_depth=Json::DEFAULT_MAX_DEPTH)
Decodes a JSON string into native PHP values, JSON objects become associative arrays.
Definition: Group.php:35
This class is a wrapper around json_decode which rejects undecodable input with an InvalidArgumentExc...
Definition: Json.php:41
const int DEFAULT_MAX_DEPTH
PHP does not expose the default of its JSON parser (PHP_JSON_PARSER_DEFAULT_DEPTH) to userland.
Definition: Json.php:48
A transformation is a function from one datatype to another.