diff --git a/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/html/HtmlElement.java b/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/html/HtmlElement.java index 1f2480d..2d34a76 100644 --- a/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/html/HtmlElement.java +++ b/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/html/HtmlElement.java @@ -30,14 +30,14 @@ public MapTerm toMap() { MapTerm res = new MapTerm(); - res.insert("type", new Constant(type)); - res.insert("id", new Constant(id)); - res.insert("text", new Constant(text)); + res.insert("\"type\"", new Constant(type)); + res.insert("\"id\"", new Constant(id)); + res.insert("\"text\"", new Constant("\"" + text + "\"")); MapTerm stylesMap = new MapTerm(); for(String prop : styles.keySet()) { stylesMap.insert(prop, new Constant(styles.get(prop))); } - res.insert("styles", stylesMap); + res.insert("\"styles\"", stylesMap); return res; }