diff options
Diffstat (limited to 'lib/output/json.js')
-rw-r--r-- | lib/output/json.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/output/json.js b/lib/output/json.js index 9e6cb3c..c4317c9 100644 --- a/lib/output/json.js +++ b/lib/output/json.js @@ -18,11 +18,11 @@ JSONOutput.prototype.onPage = function(page) { // Write as json .then(function() { - var json = _.extend(page.getContext(), { - gitbook: { - version: gitbook.version - } - }); + var json = _.extend( + page.getContext(), + gitbook.getContext(), + that.book.getContext() + ); return that.writeFile( page.withExtension('.json'), |