$file->toJson() Converts the entire file array into a json string kirby/src/Filesystem/File.php#L588 $file->toJson(): string Return type string Parent class Kirby\Filesystem\File