jsonWriter.endArray();
jsonWriter.addFieldName("layers").startArray();
jsonWriter.startObject();
jsonWriter.addField("name", "dojo.js");
jsonWriter.addFieldName("modules");
jsonWriter.startArray();
List<String> requiredDojoModules = dependencies.get("requiredDojoModules");
for(int i = 0; i < requiredDojoModules.size(); i++) {
jsonWriter.startObject();
jsonWriter.addField("name", requiredDojoModules.get(i));
jsonWriter.addField("package", "dojo");