Commit graph

60 commits

Author SHA1 Message Date
alisdair sullivan
ad3e870615 more fixes for json_escape 2012-03-30 23:17:05 -07:00
alisdair sullivan
6f6a660177 fix escaping problems in format/x 2012-03-29 21:43:55 -07:00
alisdair sullivan
63535b27d7 check more extended codepoints 2012-03-29 06:25:49 -07:00
alisdair sullivan
9d2448669e whitespace 2012-03-28 23:46:18 -07:00
alisdair sullivan
dc6a026e94 add tests for bad utf sequences, fix failures 2012-03-28 23:31:07 -07:00
alisdair sullivan
2d2dd5f7c1 faster implementation of string cleaning 2012-03-28 21:51:21 -07:00
alisdair sullivan
7e243bafd1 remove tests for malformed 5 and 6 byte sequences 2012-03-28 21:23:35 -07:00
alisdair sullivan
edbe4d16ab fix clean string for bad utf8 2012-03-28 20:17:58 -07:00
alisdair sullivan
addb1e172d fix for failing tests on R14BXX 2012-03-27 16:56:12 -07:00
alisdair sullivan
04ea83266e slightly more efficient encoding of strings 2012-03-26 18:52:32 -07:00
alisdair sullivan
5bc8bfdf45 encoder now only performs a single pass on strings and can optionally json encode them 2012-03-24 19:42:00 -07:00
alisdair sullivan
978e75887a corrected handling of malformed utf8 sequences 2012-03-21 05:38:08 -07:00
alisdair sullivan
89fcdac86a whitelist allowed codepoints rather than blacklist disallowed codepoints in jsx_encoder 2012-03-21 05:38:07 -07:00
alisdair sullivan
7aab732346 remove export_all flag 2012-03-21 05:38:07 -07:00
alisdair sullivan
3a2b48db18 ok, now it's fixed for older releases 2012-03-21 05:38:07 -07:00
alisdair sullivan
7d99e64d31 finally found actual cause of otp r14x bug 2012-03-21 05:38:07 -07:00
alisdair sullivan
ad8f640aac remove rogue function head 2012-03-21 05:38:07 -07:00
alisdair sullivan
f991f7c42e fix for older erts that don't allow noncharacters 2012-03-21 05:38:07 -07:00
alisdair sullivan
7b2c34ccd2 fix for older erts versions where the private space reserved characters are not recognized 2012-03-21 05:38:07 -07:00
alisdair sullivan
11d2d0bae1 minor fixes for illegal utf8 sequences and better testing thereof 2012-03-21 05:37:33 -07:00
alisdair sullivan
036dd72ecf minor fixes for illegal utf8 sequences and better testing thereof 2012-03-21 05:37:33 -07:00
alisdair sullivan
0c04e485a3 fixes wrongheaded and stupid escaping of strings 2012-03-21 05:36:39 -07:00
alisdair sullivan
d2950ab8c7 remove all ?_assert and replace with ?_assertFoo's 2012-03-21 05:36:39 -07:00
alisdair sullivan
8dafdb32b3 escape strings and keys in the encoder 2012-03-21 05:36:38 -07:00
alisdair sullivan
5155c96ac7 make tests runnable from basic rebar.config for users who have meck on path already 2012-03-06 19:59:49 -08:00
alisdair sullivan
d654a0e882 lift init methods into decoder/encoder 2012-03-05 19:53:55 -08:00
alisdair sullivan
e15a0e9a81 fully integrate gen_json.erl 2012-01-31 20:56:08 -08:00
alisdair sullivan
245640743d moves escaping of strings from encoder to formatter 2011-12-01 22:49:20 -08:00
alisdair sullivan
fb1b21c67c allows atoms in terms passed to encoder 2011-12-01 22:12:50 -08:00
alisdair sullivan
9a968548c8 new encoder 2011-11-29 19:39:14 -08:00
alisdair sullivan
455b1ce85c basic to_term implementation, minor fixes to encoder 2011-11-24 06:33:15 -08:00
alisdair sullivan
14277e4972 reworked interface and internals, encoder broken but needs wholesale changes to match new interface 2011-11-23 20:54:10 -08:00
alisdair sullivan
0ea61233c5 strings returned as binaries 2011-10-28 06:31:40 -07:00
alisdair sullivan
1a9d1908f0 format/2 handles naked values 2011-10-25 20:08:46 -07:00
alisdair sullivan
7a56f72b7c formatter works, kind of. only minifies currently 2011-10-24 22:51:39 -07:00
alisdair sullivan
200fb231a9 fresh api. virtually whole new thing, entirely new interface and heavily modified encoder/decoder 2011-10-21 18:16:16 -07:00
alisdair sullivan
7e88a14525 massive simplification of api, operation and internals. removes all demo modules temporarily 2011-08-31 18:52:01 -07:00
alisdair sullivan
6234e4a986 moves headers back to include dir so include_lib works. except jsx_format.hrl, because jsx_format needs a full rewrite 2011-08-16 22:45:32 -07:00
alisdair sullivan
5cf8173bd5 tests for jsx_encoder string escapes 2011-08-15 19:35:56 -07:00
alisdair sullivan
d33474d29d unifies returns of encoder and decoder 2011-08-15 17:26:11 -07:00
alisdair sullivan
588c836547 minor change to guards on the fun returned when incomplete input detected 2011-08-12 06:36:13 -07:00
alisdair sullivan
4a078bd44a move opts handling to jsx.erl for earlier failure on badopts 2011-08-10 01:28:25 -07:00
alisdair sullivan
aca326b42e multi_term mode removed until sane interface can be developed 2011-08-10 00:35:51 -07:00
alisdair sullivan
0c3cf2b87b encoder updated to use same api as decoder, format and verify updated to be aware of new api 2011-08-10 00:33:14 -07:00
alisdair sullivan
03381567d2 whitespace 2011-07-31 00:05:34 -07:00
alisdair sullivan
5f3885c594 escape_forward_slash option to allow optional escaping of forward slashes during encoding. for compatibility with microsoft json date format 2011-07-29 00:18:33 -07:00
alisdair sullivan
5d1e18d0ea add test for u+2028/2029 escaping 2011-07-27 02:01:09 -07:00
alisdair sullivan
ed71ce7b7f string escape u+2028 and u+2029 for compatibility with jsonp 2011-07-26 13:32:38 -07:00
alisdair sullivan
68d78c8e25 new api: strings and keys returned as binaries, integers as integers, floats as floats, tuple format changed from {event, ..., ...} to {jsx, ..., ...}, tests updated 2011-07-26 00:35:17 -07:00
alisdair sullivan
5060f86921 encoder string escaping 2011-07-22 21:34:19 -07:00