alisdair sullivan
e20e6746a2
removes all traces of unquoted key and comment support
2011-07-03 17:42:44 -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
26e479fc84
removes include dir, headers now live in src
2011-05-03 15:22:44 -07:00
alisdair sullivan
77af00359f
detect_encoding/2 uses decoder/1 instead of parser/1
2011-04-26 23:44:32 -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
6cc28573b6
changes default for strict to false from true to better match other json encoders/decoders in the wild
2011-04-26 21:30:57 -07:00
alisdair sullivan
428858ed8c
changes two rogue throw to error
2011-04-26 20:07:40 -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
32c9a1f00f
integrates nicefloats into jsx
2011-03-22 18:53:02 -07:00
alisdair sullivan
0c3dbaab6c
moved ebin/jsx.app to src/jsx.app.src
2011-03-22 18:46:14 -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
88da19783a
embarasssssing
2011-02-28 15:11:36 -08:00
alisdair sullivan
91f503fc07
test for streaming eep0018 parser
2011-02-28 12:44:21 -08:00
alisdair sullivan
7e8e5a9a48
removed test for removed function
2011-02-28 12:29:28 -08:00
alisdair sullivan
c973abd1b2
json_to_term/2 now returns {incomplete, More} when input ends prematurely rather than an error tuple when called with the option {stream, true}
2011-02-28 12:28:06 -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
alisdair sullivan
a99644a926
modified error return value from {error, badjson} to {error, {badjson, Bin}} where Bin is the input from the point of the error
2010-09-27 14:07:36 -07:00
alisdair sullivan
1a20e911a9
was using three different methods to rewrite options to core parser options, switched to just one
2010-09-23 22:29:21 -07:00
alisdair sullivan
c1e58460e4
added probably superfluous test, for paranoia
2010-09-23 22:28:35 -07:00
alisdair sullivan
52511d24c1
formatter and verifier allow unquoted keys now too
2010-09-23 22:28:35 -07:00
alisdair sullivan
b73e506fe2
rewrote extraction of core parser options in various components in a consistent manner
2010-09-23 22:26:04 -07:00
alisdair sullivan
d67f830def
incremented version number and added CHANGES
2010-09-22 23:12:54 -07:00
alisdair sullivan
fa4e2f533b
moved contents of jsx_test to jsx module to adhere to law of conversation of module names
2010-09-21 08:05:08 -07:00
alisdair sullivan
78663a9240
added new nicefloats project to dependencies
2010-09-20 18:44:24 -07:00
alisdair sullivan
aa3385a31d
added type specs to all publically exported functions
2010-09-15 21:30:25 -07:00
alisdair sullivan
cf38a9a466
fixed typo in edoc comments
2010-08-26 06:36:10 -07:00
alisdair sullivan
a86dec09ef
major whitespace updates to get line lengths down to < 80 characters whenever possible (a few tests ignore this). srx/jsx_test.erl was not touched because it's shortly to be replaced
2010-08-25 23:17:10 -07:00
alisdair sullivan
ac5e0e4fe3
removed author tag from modules
2010-08-25 21:40:16 -07:00
alisdair sullivan
203ec6e5e0
removed types and specs, since they are not supported in the default erlang's some linux distros supply
2010-08-25 21:28:13 -07:00
alisdair sullivan
d58fc57ab4
fixed eunit test macro definition
2010-08-23 19:59:23 -07:00
alisdair sullivan
4d8246dcdc
updated edoc
2010-08-23 13:42:22 -07:00
alisdair sullivan
1f1cb04cfd
moved option parsing into the decoder module,trying to get as much implementation outside the interface module as possible
2010-08-23 13:36:53 -07:00
alisdair sullivan
00baba4dc7
renamed format opts record
2010-08-22 23:59:39 -07:00
alisdair sullivan
aa96606c61
small enhancement to testing multi value json bodies
2010-08-22 11:46:57 -07:00
alisdair sullivan
134aa8cc49
removed the need to regenerate the jsx_utfxx decoders. not sure why i didn't do that before, pretty sure i had a bad reason
2010-08-22 11:31:14 -07:00
alisdair sullivan
67d2e6219e
Merge branch 'master' of github.com:talentdeficit/jsx
2010-08-22 10:41:27 -07:00
alisdair
8c308159e1
interstitial commit to preserve experiment
2010-08-22 02:01:22 +00:00
alisdair sullivan
24af6c36cb
minor updates to edocs
2010-08-20 18:25:06 -07:00
alisdair sullivan
6ff74e6d59
edoc documentation added
2010-08-19 23:30:22 -07:00
alisdair sullivan
c098b06e88
general cleanup of modules, moved most types, specs, defines and records to header files and did some minor reformatting to adhere to style guidelines
2010-08-19 18:22:34 -07:00
alisdair sullivan
317d757b45
minor api change, More(end_stream) is now a badarg exception in any case except the ambiguous number
2010-08-12 21:32:03 -07:00
alisdair sullivan
485c4d74ea
fixed a misleading comment about eventify
2010-08-12 20:55:07 -07:00
alisdair sullivan
45b9bc1dd0
moved function that fakes the jsx parser iterator to jsx so any client program can take advantage of it
2010-08-12 20:08:39 -07:00
alisdair sullivan
422f5958a0
it'd be nice if jsx:is_json accounted for repeat keys in a correct manner, right?
2010-08-12 17:20:58 -07:00