issue #10: smaller jsons

This commit is contained in:
Micho 2013-05-22 15:32:56 +02:00
parent 806883c8aa
commit 3ece689c9f
2 changed files with 7 additions and 2192137 deletions

File diff suppressed because one or more lines are too long

View File

@ -20,8 +20,8 @@ Object.keys(accesspoints).forEach(function (name) {
point.index = ap.getId(point.name);
condensedAccesspoints[point.index] = {
x: point.x,
y: point.y,
room: point.group
y: point.y
/*,room: point.group*/
};
});
@ -58,7 +58,10 @@ var result = {
matrix: newEntries
};
fs.writeFileSync('../clients/anim/data.js', 'var data = '+JSON.stringify(result, null, '\t'), 'utf8');
var json = JSON.stringify(result /*, null, '\t'*/);
json = json.replace(/null/g, '');
fs.writeFileSync('../clients/anim/data.js', 'var data = '+json, 'utf8');