diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-25 10:51:58 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-25 10:51:58 +0100 |
commit | d86a95b5e1fec23b4c48df5c693d6686df3fe74e (patch) | |
tree | d2c869c656d3d68c69f57ed3da316a9965239610 | |
parent | 585ed46034ee3629ba4d1c74681bca7c525047fb (diff) | |
download | gitbook-d86a95b5e1fec23b4c48df5c693d6686df3fe74e.zip gitbook-d86a95b5e1fec23b4c48df5c693d6686df3fe74e.tar.gz gitbook-d86a95b5e1fec23b4c48df5c693d6686df3fe74e.tar.bz2 |
Add json format version to the json output
-rw-r--r-- | lib/output/json.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/output/json.js b/lib/output/json.js index 86a2307..e8a71cc 100644 --- a/lib/output/json.js +++ b/lib/output/json.js @@ -21,6 +21,9 @@ JSONOutput.prototype.onPage = function(page) { // Delete some private properties delete json.config; + // Specify JSON output version + json.version = '2'; + return that.writeFile( page.withExtension('.json'), JSON.stringify(json, null, 4) |