Commit graph

635 commits

Author SHA1 Message Date
alisdair sullivan
822a668f8e remove integration tests and add unit tests to jsx_to_json.erl 2013-02-05 00:07:15 -08:00
alisdair sullivan
81f0321e32 add tests for stricter parsing of opts 2013-02-05 00:07:15 -08:00
alisdair sullivan
231a55c7e1 add unit tests for jsx_to_term, remove integration tests 2013-02-05 00:07:15 -08:00
alisdair sullivan
bd3a64f457 remove integration tests from jsx module 2013-02-05 00:07:15 -08:00
alisdair sullivan
b711bc9ef9 factor out clean_string to jsx_utils 2013-02-05 00:03:58 -08:00
alisdair sullivan
2395d6cb72 replace handrolled binary copy with call to binary:copy 2013-02-04 23:30:28 -08:00
alisdair sullivan
5efec8af8e reject invalid opts flags more strictly 2013-02-04 23:08:44 -08:00
alisdair sullivan
eaba8c7b0f remove redundant code in decoder 2013-01-22 23:44:15 -08:00
alisdair sullivan
ff7392deef Merge branch 'refactor' into develop 2013-01-22 20:55:58 -08:00
alisdair sullivan
d8a6a2c7fe Merge branch 'develop' of github.com:talentdeficit/jsx into develop 2013-01-22 20:53:19 -08:00
alisdair sullivan
21011964da add {incomplete, ...} to return types of core jsx functions
`encode`, `decode`, `format`, `prettify` and `minify` were incompletely specified

closes #27
2013-01-22 12:41:56 -08:00
alisdair sullivan
83a219ba80 more specific guarding in string fsm 2012-12-28 06:43:35 -08:00
alisdair sullivan
1982665507 extend decoder tests to be more comprehensive 2012-12-28 06:35:26 -08:00
alisdair sullivan
fe67eb5b26 Update src/jsx.erl
minor formatting changes
2012-12-22 11:01:34 -08:00
alisdair sullivan
844ee2407f previously, unambiguously incomplete input was sometimes treated as ambiguous. the 'incomplete_input' flag is no longer needed to parse this input correctly 2012-11-21 23:35:15 -08:00
alisdair sullivan
6ff94d8e5f strip trailing whitespace 2012-11-21 23:04:14 -08:00
Devin Torres
d588361304 Export JSON types so libraries wrapping JSX can use them in their typespecs 2012-11-06 08:30:00 -06:00
alisdair sullivan
147e171dad v1.3.3 2012-09-03 21:28:32 -07:00
alisdair sullivan
6bf3ff67e8 fix ordering problem for pre_encode 2012-09-03 21:27:00 -07:00
alisdair sullivan
a4cf52eefb v1.3.2 2012-09-03 21:17:06 -07:00
alisdair sullivan
4620081f6e fix for issue 19, incorrect handling of proplists when using pre_encode 2012-09-03 21:13:14 -07:00
alisdair sullivan
592bde45b1 v1.3.1 2012-07-01 23:42:57 -07:00
alisdair sullivan
eb8ba481b5 whitespace 2012-06-08 21:44:39 -07:00
alisdair sullivan
7fb5b6ea7c allow pre_encode to handle tuples 2012-06-08 21:40:19 -07:00
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