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
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
3485ca5413
whitespace
2011-08-09 21:04:27 -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
5cd967b26d
discovered and fixed a couple more broken tests
2011-08-03 00:15:18 -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
100f707899
streamlined options
2011-07-28 19:21:19 -07:00
alisdair sullivan
bac3ece706
whitespace
2011-07-28 18:48:07 -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
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
2ee96eb356
tests updated to reflect parser changes, eep0018 and format module still contain failing tests
2011-07-22 21:36:14 -07:00
alisdair sullivan
3bf5506292
unifies options to encoder/decoder to allow abstraction over various different built in iterators
2011-07-21 06:14:48 -07:00
alisdair sullivan
e7025efe50
is_json inputs now line up with format inputs
2011-07-17 20:55:54 -07:00
alisdair sullivan
9cee07212f
add encoder/0 to jsx.erl
2011-07-17 20:55:54 -07:00
alisdair sullivan
746d8e469c
renames jsx_opts to jsx_decoder_opts
2011-07-17 20:55:54 -07:00
alisdair sullivan
7079a6ead7
whitespace fixes for contributed patch
2011-07-04 21:07:50 -07:00
amtal
b9d10181ab
switched to error/2 from error/1 in exported funcs
...
Passing a list of arguments in the second parameter, makes them
show up in the stack trace in place of the function arity number.
For referentially transparent functions (which foo_to_bar tend to
be) failures can then be reproduced from just the stack trace!
If using error/1, you must rely on some higher layer to add enough
info to reproduce the crash.
2011-06-23 14:41:51 -07:00
alisdair sullivan
e4cbe15fa7
fixes broken build from premature push, oops
2011-05-04 01:00:29 -07:00
alisdair sullivan
b2d923cbcb
api change, parser/0,1 deprecated, replaced with decoder/0,1
2011-04-26 23:40:12 -07:00
alisdair sullivan
6481bae328
removes useless eventify function
2011-04-16 22:25:02 -07:00
alisdair sullivan
e22ec34000
moves encoding detection to jsx_utils
2011-04-16 22:18:59 -07:00
alisdair sullivan
216a71895a
removes all edoc machinery
2011-03-22 19:02:28 -07:00
alisdair sullivan
a6e7490a2b
options are now proplist style, so [comments] implies [{comments, true}] et cetera
2011-03-07 14:02:51 -08:00
alisdair sullivan
7e8e5a9a48
removed test for removed function
2011-02-28 12:29:28 -08:00
alisdair sullivan
8ed4b1a405
new test for read_file/1, /2
2011-02-21 19:47:20 -08:00
alisdair sullivan
dd46f4394b
commented rethrown exceptions
2010-09-28 12:52:58 -07:00
alisdair sullivan
a4d48fd8d9
backed out ill conceived change to options
2010-09-27 14:52:16 -07:00
alisdair sullivan
5bcdca948a
wrapped calls to jsx_eep0018 so that badarg exceptions are raised in the public api, rather than in internal modules
2010-09-27 14:27:39 -07:00