Lines Matching full:json
7 class Json class
13 const EXTENSION = "json";
21 * Json constructor.
30 public static function createEmpty(): Json
32 return new Json([]);
35 public static function createFromArray(array $actual): Json
37 return new Json($actual);
40 public static function getValidationLink(string $json): string argument
42 …n <a href=\"https://jsonformatter.curiousconcept.com/?data=" . urlencode($json) . "\">this link</a…
49 public static function createFromPath(Path $path): Json
93 static function createFromString($jsonString): Json
96 return new Json();
100 throw new ExceptionBadSyntax("The string is not a valid json. Value: ($jsonString)");
102 return new Json($jsonArray);