Commit a0755f1f authored by Sebastien Robin's avatar Sebastien Robin

gui prototype: display json data in a nicely formatted way

parent bb8f90df
......@@ -65,7 +65,7 @@
// once the data is read, we can subscribe to every changes
$.subscribe("Dream.Gui.onDataChange", function(event, data) {
console.log("onDataChange, data", data);
$("#json_output")[0].value = JSON.stringify(data);
$("#json_output")[0].value = JSON.stringify(data, undefined, " ");
jio.put({_id: "dream_demo", data: data}, function(err, response) {
console.log("jio put:", response);}
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment