Commit graph

23 commits

Author SHA1 Message Date
alisdair sullivan
746d8e469c renames jsx_opts to jsx_decoder_opts 2011-07-17 20:55:54 -07:00
alisdair sullivan
e80d337cc0 whitespace 2011-07-06 00:29:31 -07:00
alisdair sullivan
f3aa254664 reworks is_json to be more lenient, optionally more strict 2011-07-05 21:42:08 -07:00
alisdair sullivan
922e3e525e removed now meaningless strict option from format and verify modules and associated types and specs 2011-07-04 21:04:10 -07:00
alisdair sullivan
0052480652 is_json/2 and format/2 now both accept either a json text (binary) or a function that acts as a jsx iterator. specs updated to reflect 2011-07-04 19:25:09 -07:00
alisdair sullivan
e20e6746a2 removes all traces of unquoted key and comment support 2011-07-03 17:42:44 -07:00
alisdair sullivan
26e479fc84 removes include dir, headers now live in src 2011-05-03 15:22:44 -07:00
alisdair sullivan
eb55eb9599 all five utfx variants supported now compiled from a single templated module 2010-06-07 16:15:40 -07:00
alisdair sullivan
fb497a20bc added a streaming mode, use option [{stream_mode, true}] to use. no tests yet 2010-06-06 13:58:04 -07:00
alisdair sullivan
a7ed14b741 utf8, both varieties of utf16 and both varieties of utf32 are now autodetected properly (either via bom or null order) and decoded properly 2010-06-01 01:28:42 -07:00
alisdair sullivan
eadb7acbdd change in design philosophy, core decoder and interface now a single file 2010-05-31 21:02:58 -07:00
alisdair sullivan
97520b06ae changed comments_true macro to comments_enabled 2010-05-31 21:00:20 -07:00
alisdair sullivan
2a2275136a Removed all records from the core decoder. Replaced with macros and a raw tuple containing options. Updated one test to account for changed api. 2010-05-31 21:00:20 -07:00
alisdair sullivan
6d90c49be3 punt validity of naked values to user level, they are now always valid in decoding 2010-05-31 21:00:20 -07:00
alisdair sullivan
7e6124fc88 explicit termination is no longer an option. the decoder now terminates whenever it reaches the end of an unambiguous json term and returns a function that accepts either more input to continue decoding or the empty binary to force termination.
examples are currently broken, but the test suite has been updated to reflect the new api.
2010-05-31 21:00:16 -07:00
alisdair sullivan
feaef7380c changed api of jsx_parser 2010-05-31 21:00:06 -07:00
alisdair sullivan
8e05d0c1a6 added license/copywrite to all code 2010-05-31 21:00:06 -07:00
alisdair sullivan
6515f9981d added option for explicit termination requirement when parsing streams 2010-05-31 21:00:05 -07:00
alisdair sullivan
e3f5637da1 should now be possible to autodirect utf encoding 2010-05-31 21:00:04 -07:00
alisdair sullivan
baf8561780 moved the opts record back to private header file 2010-05-31 21:00:04 -07:00
alisdair sullivan
7468313ffc moved opts record def from jsx_common.hrl to a public jsx.hrl header file
actually included the new header, oops
2010-05-31 21:00:00 -07:00
alisdair sullivan
5c36ec18d7 added naked (unwrapped) values option and rewrote the handling of comments to reduce line count and be slightly clearer 2010-05-31 20:59:49 -07:00
alisdair sullivan
121fe34474 first working version 2010-05-18 12:16:25 -07:00