Add option for exporting pretty-printed JSON
commit477bb0dc0c979b4b44d25af623eeb640afe253ee
authorHauke Henningsen <sqrt@entless.org>
Mon, 16 Mar 2015 02:22:56 +0000 (16 03:22 +0100)
committerHauke Henningsen <sqrt@entless.org>
Mon, 16 Mar 2015 02:22:56 +0000 (16 03:22 +0100)
tree05319858782ea5a261ffdf634688ba607e6e1224
parentcf15d764130ed6d36b59da457895324de3209818
Add option for exporting pretty-printed JSON

This adds a single option to the JSON export plugin,
which, if available (PHP >= 5.4.0) corresponds to passing
`JSON_PRETTY_PRINT` to `json_encode`.

Signed-off-by: Hauke Henningsen <sqrt@entless.org>
export.php
libraries/config.default.php
libraries/plugins/export/ExportJson.class.php