Fix #643 to make exported json valid

This commit is contained in:
Katelyn Mann
2016-10-04 11:04:06 -07:00
parent 966cda6088
commit f680800b97

View File

@@ -113,6 +113,11 @@ BlockExporterTools.prototype.getBlockDefinitions =
}
blockCode.push(code);
}
// Surround json with [] and comma separate items.
if (definitionFormat == "JSON") {
return "[" + blockCode.join(",\n") + "]";
}
return blockCode.join("\n\n");
};