Commit graph

454 commits

Author SHA1 Message Date
alisdair sullivan
e1e9636901 removed embarassssssing CHANGES 2011-08-11 17:05:48 -07:00
alisdair sullivan
31614927e2 inline accumulation of events, ~30% speedup 2011-08-11 16:55:52 -07:00
alisdair sullivan
7b0cf9c724 jsx_terms decoder now uses new api 2011-08-11 00:23:46 -07:00
alisdair sullivan
01a8154ac4 remove stream mode from jsx_terms and streamline options handling in jsx_terms to simplify migration to new api 2011-08-10 23:38:56 -07:00
alisdair sullivan
3186223fd1 better guarding of opts parsing 2011-08-10 23:18:42 -07:00
alisdair sullivan
c56cf7c00b remove jsx_verify.hrl, move opts record to main body 2011-08-10 22:57:53 -07:00
alisdair sullivan
0624321347 removes catch blocks from jsx_verify, allow errors to propogate 2011-08-10 22:48:55 -07:00
alisdair sullivan
5db827f6ed whitespace 2011-08-10 22:46:50 -07:00
alisdair sullivan
d64644e01f whitespace 2011-08-10 22:45:00 -07:00
alisdair sullivan
a2c7cf3977 new test for repeated nested keys 2011-08-10 21:59:27 -07:00
alisdair sullivan
bb80bf2b83 is_json rewritten to use new api 2011-08-10 21:55:58 -07:00
alisdair sullivan
39605da171 add collect function to jsx_utils for later use 2011-08-10 01:44:38 -07:00
alisdair sullivan
59bde85780 unexported pow/2 from jsx_utils, can't remember why i did that 2011-08-10 01:33:43 -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
3fdf2b28c8 Merge branch 'feature/inline_ops' into develop 2011-08-10 00:36:06 -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
ba057d13cc encoder exported correctly 2011-08-10 00:33:52 -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
3485ca5413 whitespace 2011-08-09 21:04:27 -07:00
alisdair sullivan
ea764162c0 moves opts and parse_opts to external header 2011-08-09 21:02:01 -07:00
alisdair sullivan
8bb0f66470 unless iterate option is specified, jsx now buffers events internally before returning 2011-08-09 17:49:42 -07:00
alisdair sullivan
986b60af37 groundwork for eventual inline ops 2011-08-09 16:02:14 -07:00
alisdair sullivan
7b6f52bec3 rebar config changes 2011-08-03 00:46:33 -07:00
alisdair sullivan
776ee8a8a2 two new tests for bad low pairs of json surrogate pairs 2011-08-03 00:45:49 -07:00
alisdair sullivan
5cd967b26d discovered and fixed a couple more broken tests 2011-08-03 00:15:18 -07:00
alisdair sullivan
12eb6c6c08 adds emit function and incomplete macro and makes whitespace changes to reduce linecount of jsx_decoder.hrl by 280 lines 2011-08-02 20:06:49 -07:00
alisdair sullivan
b3eb058463 revert change from strings/keys being presented as binaries to being presented as lists of characters. ~30% speedup 2011-07-31 19:05:30 -07:00
alisdair sullivan
20f9e0368d tests could fail silently when file:consult failed, fixed 2011-07-31 18:43:14 -07:00
alisdair sullivan
e90c5461e8 cleanup of comments, some of which were no longer strictly true 2011-07-31 00:12:47 -07:00
alisdair sullivan
03381567d2 whitespace 2011-07-31 00:05:34 -07:00
alisdair sullivan
ecdd34fa37 building strings as lists of codepoints, then converting them to binaries is faster than building binaries directly, or slicing segments out of binaries in the case of utf8. by more than 25% 2011-07-30 23:52:29 -07:00
alisdair sullivan
3c0569036e remove misleading readme 2011-07-29 00:21:37 -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
b73ca00892 alters behaviour for escaped noncharacters in extended plane with loose_unicode enabled, now replaced by single u+fffd, not two 2011-07-28 21:21:08 -07:00
alisdair sullivan
16c29a0070 surrogates that encode noncharacters now are replaced by a single u+fffd rather than two 2011-07-28 21:15:21 -07:00
alisdair sullivan
f699bdeedc ensure last key 'wins' in the value decoder 2011-07-28 21:12:20 -07:00
alisdair sullivan
100f707899 streamlined options 2011-07-28 19:21:19 -07:00
alisdair sullivan
eeda6b4c99 Merge branch 'feature/more_tests' into develop 2011-07-28 18:48:17 -07:00
alisdair sullivan
bac3ece706 whitespace 2011-07-28 18:48:07 -07:00
alisdair sullivan
cd4f4a8f1c test every codepoint possible for replacement/badness 2011-07-28 18:47:58 -07:00
alisdair sullivan
0e66a82b29 Merge branch 'feature/loose_unicode' into develop 2011-07-27 06:52:25 -07:00
alisdair sullivan
80e9381b42 proper guarding and handling of noncharacters in json strings. more tests required 2011-07-27 06:52:16 -07:00
alisdair sullivan
df04e7af89 modify fraction test to increase test coverage slightly 2011-07-27 02:01:34 -07:00
alisdair sullivan
5d1e18d0ea add test for u+2028/2029 escaping 2011-07-27 02:01:09 -07:00
alisdair sullivan
30bc535e93 compile cover stats when running test suite 2011-07-27 02:00:35 -07:00
alisdair sullivan
653205501c adds loose_unicode option which replaces badly formed unicode (escaped non-characters and restricted codepoints, as well as partial surrogates) with u+fffd instead of throwing an error 2011-07-27 01:59:03 -07:00
alisdair sullivan
51d27bb3b5 Merge branch 'feature/cleanup' into develop 2011-07-26 19:59:05 -07:00
alisdair sullivan
b153ce3685 moves escaping tests to general test lib, minor refactoring of test runner to facilitate 2011-07-26 19:58:48 -07:00
alisdair sullivan
2720b2e0fb noncharacter tests 2011-07-26 19:46:31 -07:00
alisdair sullivan
c5c98482fc test for noncharacters, fixed bug discovered by test 2011-07-26 19:28:41 -07:00