Commit graph

166 commits

Author SHA1 Message Date
Joseph Crowe
b623efe2e8 Fix type json_term/0 to match reality. 2013-09-02 08:54:10 +01:00
alisdair sullivan
0441224998 update license dates 2013-03-10 20:30:24 -07:00
alisdair sullivan
89d3cbbd36 rename jsx_utils jsx_config 2013-03-06 01:37:08 -08:00
alisdair sullivan
dd302eb7b4 extend resume api to parser 2013-03-05 21:10:33 -08:00
alisdair sullivan
07836d5d58 update types of jsx exported functions 2013-03-05 20:02:52 -08:00
alisdair sullivan
ff6a83598b replace all incidences of opts with config 2013-02-12 11:54:42 -08:00
alisdair sullivan
2f47fdd642 simplify exportation of tests, add strings to test suite 2013-02-11 19:06:44 -08:00
alisdair sullivan
ba42f75780 first tentative steps towards more comprehensive and flexible test suite 2013-02-06 22:28:26 -08:00
alisdair sullivan
bd3a64f457 remove integration tests from jsx module 2013-02-05 00:07:15 -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
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
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
d081bd2539 change all stray badjson to badarg 2012-05-24 23:07:03 -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
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
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
bd6202e618 v1.1 2012-03-27 16:49:25 -07:00
alisdair sullivan
3d836f1241 remove debug statement from tests 2012-03-26 22:10:09 -07:00
alisdair sullivan
b57750fcfc fix specs for to_term/x, thanks to michael truog 2012-03-25 13:18:26 -07:00
alisdair sullivan
91dcb65e3c Merge https://github.com/okeuday/jsx into develop 2012-03-25 13:14:08 -07:00
alisdair sullivan
cff2ffa295 better specs for to_term/x, thanks to michael truog 2012-03-25 13:09:55 -07:00
Michael Truog
d560d7ff3a Fix -spec declaration to prevent dialyzer problems. 2012-03-25 00:26:12 -07:00
alisdair sullivan
97a7d295f1 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:35:16 -07:00
alisdair sullivan
1d5b9e7410 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:26:19 -07:00
alisdair sullivan
338f79ec9a move test cases to priv/, retrieve location with code:lib_dir/2 2012-03-14 06:36:36 -07:00
alisdair sullivan
b10262d720 whitespace 2012-03-05 20:37:22 -08:00
alisdair sullivan
ec295a888b new is_term function that mirrors is_json for erlang terms 2012-03-04 18:40:00 -08:00
alisdair sullivan
ed33626ed5 add encoder and decoder functions to api 2012-03-04 15:47:08 -08:00
alisdair sullivan
63faf04115 factor out gen_json 2012-03-02 22:53:45 -08:00
alisdair sullivan
e15a0e9a81 fully integrate gen_json.erl 2012-01-31 20:56:08 -08:00
alisdair sullivan
9aaa23735a unofficially deprecate json_to_term and term_to_json 2012-01-31 20:44:35 -08:00
alisdair sullivan
ffa2aa6ce9 add note about streaming mode to README, allow incomplete returns from json_to_term and format 2011-12-14 21:07:50 -08:00
alisdair sullivan
3857980f6c remove incomplete returns from json_to_term/1,2 and format/1,2 2011-11-30 06:36:06 -08:00
alisdair sullivan
cf722ed8d9 restores old api 2011-11-29 19:56:00 -08:00
alisdair sullivan
6dacf64620 refactors out extraction of parser opts, generalizes use of specific parsers by processors 2011-11-29 19:39:01 -08:00
alisdair sullivan
1fad948aec changes name of jsx_format to jsx_to_json and jsx_terms to jsx_to_term 2011-11-28 17:30:55 -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
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
9c5710b97c reorg of opts parsing, some minor source cleanups 2011-10-19 06:51:36 -07:00
alisdair sullivan
9e8361e10a incremental test, fixed revealed bug in incomlete implementation 2011-08-31 19:35:09 -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
48ada362e9 (broken) test to check equivalency of encoder/decoder apis. more cases needed 2011-08-13 07:22:46 -07:00
alisdair sullivan
4a078bd44a move opts handling to jsx.erl for earlier failure on badopts 2011-08-10 01:28:25 -07:00