Opened 17 years ago
Last modified 8 years ago
#120 new refactoring
replace ["..."] with dot notation in JS
Reported by: | christoph | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | |
Keywords: | Cc: |
Description
toJSONString() does not work with ... syntax!
Change History (5)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
- correct. I tried converting the map object to JSON via toJSONString(), and the entries for the arrays created with the bracket syntax were omitted. I had to use the dot syntax. Now I realize why JSLint always complains about the bracket syntax.
- I mean the anyObject.toJSONString from json.js, which itself is from www.json.org
comment:3 by , 17 years ago
Milestone: | 2.5 release → 3.0 release |
---|
Note:
See TracTickets
for help on using tickets.
I've got some questions:
anyObject.newProperty = "new value";
instead of
anyObject["newProperty"] = "new value"
anyObject.toJSONString();
or the (at least planned)
toJSONString(anyObject);