Commit graph

411 commits

Author SHA1 Message Date
alisdair sullivan
d081bd2539 change all stray badjson to badarg 2012-05-24 23:07:03 -07:00
alisdair sullivan
f0950dc4c9 typo in parser tests 2012-05-24 22:34:30 -07:00
alisdair sullivan
c15623a767 remove unused variables 2012-05-23 22:30:02 -07:00
alisdair sullivan
44d1c196a2 bump to v1.3 2012-05-23 22:17:36 -07:00
alisdair sullivan
2aa8cd2894 README updated for v1.3, to_term and to_json replaced by decode and encode respectively 2012-05-23 22:01:07 -07:00
alisdair sullivan
57f067aaef better types and specs 2012-05-23 06:47:58 -07:00
alisdair sullivan
608f2437cf change behaviour of dirty_strings option, dont attempt to escape or ensure clean at all 2012-05-23 01:07:54 -07:00
alisdair sullivan
9d34818d52 remove unused explicit_end check 2012-05-23 01:00:37 -07:00
alisdair sullivan
cb39d33eda add incomplete test to jsx_parser 2012-05-23 00:57:13 -07:00
alisdair sullivan
44446357d0 add tests to jsx_parser, add it to app manifest 2012-05-23 00:52:53 -07:00
alisdair sullivan
f44ee7aeab add jsx_parser, a pda to be used in conjunction with custom tokenizers 2012-05-22 23:37:37 -07:00
alisdair sullivan
66304b9f5d fix types and specs in jsx.erl 2012-05-22 21:51:23 -07:00
alisdair sullivan
e18322779e add prettify/1 and minify/1 2012-05-14 23:20:17 -07:00
alisdair sullivan
c203b7762d bump to v1.2.1 to fix solidus escaping issue 2012-04-26 13:48:12 -07:00
Bob Ippolito
6ff1471550 handle escaped solidus correctly per JSON spec 2012-04-26 13:04:17 -07:00
alisdair sullivan
79b8740da8 post_decode working 2012-04-06 09:05:08 -07:00
alisdair sullivan
d9bb9ee9ac machinery for post_decode (still does nothing) 2012-04-06 08:51:50 -07:00
alisdair sullivan
ded212c397 minor refactoring of jsx_decoder in prep for post_decode hook 2012-04-06 08:35:40 -07:00
alisdair sullivan
7e242b7e1e throw exception on bad options, rather than returning error tuple 2012-04-06 08:12:55 -07:00
alisdair sullivan
66ea9f847b merge feature/preencode 2012-04-06 08:10:45 -07:00
alisdair sullivan
76723ce736 semantic change to way pre_encode works 2012-04-06 08:09:52 -07:00
alisdair sullivan
e69ac5f371 detect utf8 bom and ignore if present 2012-04-04 20:46:41 -07:00
alisdair sullivan
ae13b934c6 add {pre_encoder, F} variant of {pre_encoders, [F, G,...]} 2012-04-04 20:13:27 -07:00
alisdair sullivan
89292c940d pre_encoders for preprocessing input to encoder 2012-04-04 20:04:17 -07:00
alisdair sullivan
941620129d remove nicedecimal from jsx.app.src 2012-04-04 18:41:55 -07:00
alisdair sullivan
19402fbee4 two new tests for comments and one (tiny) fix for trailing comments 2012-04-01 17:53:59 -07:00
alisdair sullivan
7b5f56a4be minor refactoring in jsx_decoder 2012-04-01 17:27:55 -07:00
alisdair sullivan
3e56b7ff3d more explicit handling of comments 2012-04-01 17:16:22 -07:00
alisdair sullivan
3bc2c68ea3 fix the tenses and forms of option flags 2012-03-31 21:58:18 -07:00
alisdair sullivan
fdea98ebbf add escape equiv test 2012-03-31 21:19:37 -07:00
alisdair sullivan
357e3e0aeb add naked single quoted json escape test 2012-03-31 21:19:26 -07:00
alisdair sullivan
95feb74d1b correct operation of ignore_bad_escapes 2012-03-31 20:51:47 -07:00
alisdair sullivan
1c9da676b7 remove decode/1 from jsx_decoder test suite 2012-03-31 20:39:15 -07:00
alisdair sullivan
068af5621a add tests for ignore_bad_escapes 2012-03-31 20:38:51 -07:00
alisdair sullivan
ff42a04cdf remove old escaping code path 2012-03-31 20:31:28 -07:00
alisdair sullivan
66cb67148f whitespace changes in jsx_decoder.erl 2012-03-31 17:51:20 -07:00
alisdair sullivan
60bc46e2d4 add test suite for json_escape in decoder 2012-03-31 17:45:23 -07:00
alisdair sullivan
ae2aae1ebf style and whitespace 2012-03-31 17:45:23 -07:00
alisdair sullivan
ab49c3379b style and whitespace 2012-03-31 17:45:23 -07:00
alisdair sullivan
0e4e04ee36 couple new tests for better test coverage in jsx_encoder 2012-03-31 17:45:23 -07:00
alisdair sullivan
cb6c676775 add test for dirty_strings 2012-03-31 17:45:23 -07:00
alisdair sullivan
fa173e2d11 json escape to_json and format by default 2012-03-31 17:45:23 -07:00
alisdair sullivan
7c810cb05d inline json escaping into encoder 2012-03-31 17:44:20 -07:00
alisdair sullivan
a6aa97fff6 remove unesscessary lists:flatten call 2012-03-31 12:34:29 -07:00
alisdair sullivan
9763ff189f use io_lib:format for float formatting 2012-03-31 12:33:19 -07:00
alisdair sullivan
ad3e870615 more fixes for json_escape 2012-03-30 23:17:05 -07:00
alisdair sullivan
cd1a6deaaa fix format/x and to_json/x bug involving string escapes 2012-03-29 22:13:01 -07:00
alisdair sullivan
a6dee16904 bump version to 1.1.2 2012-03-29 21:48:24 -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