From 042a7743b2e41ed66b6af092e68c44d326f99ffa Mon Sep 17 00:00:00 2001 From: Dark Date: Wed, 11 Nov 2015 00:20:05 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index def5113..4aa0791 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ and outputs its contents into a json-formatted file like this: It can be very useful when working with Javascript frameworks and/or similar scenarios where you need to load/browse/show a directory structure without being allowed to access the system IO. ## Conversion rules +The json conversion is handled by the native php `json_encode` function (available in PHP 5 >= 5.2.0, PECL json >= 1.2.0, PHP 7). For further info on PHP's json_encode function, read here: +http://php.net/manual/en/function.json-encode.php + The generated JSON object will adopt the following conventions: * If a folder contains only files (without subfolders), they will be listed as items of a single array. * If a folder contains one or more subfolders, each one will be listed as a key/value array. @@ -74,6 +77,3 @@ http://php.net/manual/en/json.constants.php > php dir2json ./images out.json JSON_PRETTY_PRINT ``` -The json conversion is handled by the native php `json_encode` function (available in PHP 5 >= 5.2.0, PECL json >= 1.2.0, PHP 7). For further info on PHP's json_encode function, read here: -http://php.net/manual/en/function.json-encode.php -