Add json format version to the json output

This commit is contained in:
Samy Pessé
2016-02-25 10:51:58 +01:00
parent 585ed46034
commit d86a95b5e1
+3
View File
@@ -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)