Bjorn Neergaard
54e801776d
Revert "Make JSON.stringify encode numbers properly"
...
This reverts commit f4600644ec .
2015-12-27 15:45:48 -06:00
Bjorn Neergaard
f4600644ec
Make JSON.stringify encode numbers properly
...
JSON doesn't allow scientific/exponential notation...
Fixes #14098
2015-12-27 15:19:24 -06:00
Bjorn Neergaard
da4842dddf
Make NanoUI resistant to Topic spoofs
...
Move Topic() into a NanoUI-specific ui_act proc
Update to @YotaXP's latest JSON code.
Return focus to the mapwindow if a key is pressed in a NanoUI.
2015-12-15 22:37:52 -06:00
YotaXP
2869b1cf61
Re-write JSON writer to output valid JSON
...
How the old one worked, I don't know...
We don't have a reader yet, but we don't use a reader sooo...
2015-12-15 14:41:34 -06:00
Shadowlight213
bc32764587
Changes json_writer to not use flat_array
2015-12-07 13:10:28 -08:00
Bjorn Neergaard
864caa9d62
Hotfix for Cryo (JSON problems) and render issues (Internet Explorer)
...
Blame MSO
2015-12-02 19:48:16 -05:00
Kyle Spier-Swenson
8427287541
Optimizes json writer, attempt 2
...
I couldn't make this just use list2text on lists because nested lists are a thing.
This is almost as good, as saves a few more string free writes.
2015-12-02 03:50:04 -08:00
Kyle Spier-Swenson
9335734e3f
forgot a quote
2015-11-30 23:22:22 -08:00
Kyle Spier-Swenson
6b8436558e
Deleted 1 too many lines
2015-11-30 22:47:15 -08:00
Kyle Spier-Swenson
03f29f3b99
Makes json writer use 90% less string tree operations
...
"[thing1][thing2][thing3]" and text() both compile to use only 1 string tree operation regardless of the number of args.
list2text abuses this to write 128 items of the list in 1 go, and it also handles the separator in the proper way, so no reason to not use it.
this also cuts 1 string tree operation out of every associative list write as well as 1 out of the writing of every item in that list.
So now the string tree O notation should be O(n log2(M)) rather then O(N^M) (ish)
2015-11-30 22:45:31 -08:00
Bjorn Neergaard
56e359efb8
Refactor JSON
...
* Move into seperate module
* Use aboslute pathing
2015-11-26 07:11:28 -05:00