From d86a95b5e1fec23b4c48df5c693d6686df3fe74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 25 Feb 2016 10:51:58 +0100 Subject: [PATCH] Add json format version to the json output --- lib/output/json.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/output/json.js b/lib/output/json.js index 86a230758..e8a71cc28 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)