Commit graph

973 commits

Author SHA1 Message Date
alisdair sullivan
e4a401a3a6 incomplete input now results in an error when parsing json or jsx
internal form

streaming decoding is now only available when forced with the
`stream` option and no longer returns until forced to via the
token `end_stream`. this api is still subject to being replaced
with an even more explicit streaming mode
2013-10-20 03:10:18 +00:00
alisdair sullivan
6797bf3ed7 rename explicit_end to stream in prep for behavior change 2013-10-20 03:10:09 +00:00
alisdair sullivan
d77f23ec9a merge jsx_strings and jsx_parser 2013-10-20 03:08:40 +00:00
alisdair sullivan
2d385c3342 delegate almost all responsibility of encoder to parser to simplify
internals
2013-10-20 03:07:42 +00:00
alisdair sullivan
3d1096f8f5 remove deprecated functions 2013-10-19 19:35:02 -07:00
alisdair sullivan
73b9032c99 remove superfluous parser states 2013-10-19 19:35:02 -07:00
alisdair sullivan
07d84e25d0 remove pre_encode support 2013-10-19 19:35:01 -07:00
alisdair sullivan
0238916472 remove post_decode support 2013-10-19 19:35:01 -07:00
alisdair sullivan
41fc97cf7a added more contributors 2013-09-20 22:16:05 -07:00
alisdair sullivan
58fbbb3bee update contributors 2013-09-20 22:13:01 -07:00
alisdair sullivan
377b47fdfb formatting fixes
fix line spacing issues
2013-09-20 22:03:36 -07:00
alisdair sullivan
06bb658e35 formatting fixes
cleanup line spacing
2013-09-20 22:02:14 -07:00
alisdair sullivan
292406d4fd Merge pull request #40 from olabackstrom/develop
Added typespecs on all exported functions, and fixed
2013-09-20 22:00:13 -07:00
Ola Backstrom
2943116c08 Added typespecs on all exported functions
Made sure all exported types do have a typespec is useful in build scenarios
where the erlang compile options
[warnings_as_errors, warn_missing_spec]
are used.

A few type errors found by Dialyzer are corrected too.

	modified:   src/jsx.erl
	modified:   src/jsx_config.erl
	modified:   src/jsx_config.hrl
	modified:   src/jsx_decoder.erl
	modified:   src/jsx_parser.erl
	modified:   src/jsx_to_json.erl
	modified:   src/jsx_to_term.erl
	modified:   src/jsx_verify.erl
2013-09-19 17:04:38 +02:00
alisdair sullivan
a39baa4efc Merge pull request #39 from JosephCrowe/develop
Fix type json_term/0 to match reality.
2013-09-02 17:48:20 -07:00
Joseph Crowe
b623efe2e8 Fix type json_term/0 to match reality. 2013-09-02 08:54:10 +01:00
alisdair sullivan
e50af6e109 v1.4.3 2013-08-27 05:09:19 +00:00
alisdair sullivan
e57cc7cefc update .gitignore 2013-08-27 05:03:29 +00:00
alisdair sullivan
0bbe56c700 check for incomplete valid input before checking for malformed utf8 2013-08-27 05:02:37 +00:00
alisdair sullivan
af11b97879 undo `optimized' ordering of string parsing clauses in decoder 2013-08-27 04:09:10 +00:00
alisdair sullivan
4cf557a848 remove unesscessary line from README 2013-07-10 05:26:19 +00:00
alisdair sullivan
f8aaac9779 Merge pull request #38 from patrickgombert/develop
Add empty rebar.config so that Mix in Elixir projects can build this project as a dependency
2013-07-08 17:44:15 -07:00
Patrick Gombert
e9cdeda7c8 Add empty rebar.config so that Mix in Elixir projects can build this project as a dependency 2013-07-08 10:27:02 -05:00
alisdair sullivan
fe2bd15184 rename 'sloppy_existing_atom' to 'attempt_atom' 2013-07-05 03:11:01 +00:00
alisdair sullivan
5dd62e27b5 Merge pull request #37 from macintux/friendlier-existing-atom
Add sloppy_existing_atom as a configuration option for labels
2013-07-04 20:05:51 -07:00
John Daily
1da0c567ba Add sloppy_existing_atom as a configuration option for labels 2013-07-03 21:51:26 -04:00
alisdair sullivan
8487a2afc0 add proper error state to encoder object parsing
fixes #36
2013-06-24 11:32:03 -06:00
alisdair sullivan
352d6b21cb v1.4.2 2013-06-04 01:19:39 +00:00
alisdair sullivan
41b6652e84 fix inaccurate example in README 2013-06-04 01:14:55 +00:00
alisdair sullivan
3df6a1dab6 swap badarg' error for function_clause' error in jsx:format/x 2013-06-04 01:14:11 +00:00
alisdair sullivan
453d4078e0 remove erlang style comments from LICENSE 2013-04-18 14:47:51 -07:00
alisdair sullivan
15e7ec7130 add `{raw, <<"...">>}' handling to parser
this is an experimental feature to support the elixir wrapper for
jsx. interface may still change
2013-04-10 21:57:21 -07:00
alisdair sullivan
c84fe9345f remove superfluous clause in encoder 2013-04-10 21:01:20 -07:00
alisdair sullivan
679ff24ad2 more README tweaks 2013-03-29 19:25:19 -07:00
alisdair sullivan
f63d464afb juggle order of README intro 2013-03-29 19:23:45 -07:00
alisdair sullivan
d3a6c3fa90 hat tip to travis for integration testing 2013-03-29 19:20:32 -07:00
alisdair sullivan
6346f1ce88 reintroduce travis-ci build indicator 2013-03-29 19:18:20 -07:00
alisdair sullivan
5cab23bf61 rename jsx_bench.escript -> jsxbench 2013-03-29 19:12:14 -07:00
alisdair sullivan
495837441c change extension on markdown files
rename README.markdown -> README.md and CHANGES.markdown -> CHANGES.md
2013-03-29 19:10:53 -07:00
alisdair sullivan
663b62c90c simplify build process and configuration
remove largely irrelevent rebar config and provide alternate build
config for hipe compiler. update README to reflect changes
2013-03-29 19:06:19 -07:00
alisdair sullivan
95d392d12e remove bin dir, move script to base dir 2013-03-21 00:33:13 -07:00
alisdair sullivan
bc65b6ce27 who likes manually wrapping their lines? this guy ^ 2013-03-16 19:17:39 -07:00
alisdair sullivan
e851793664 minor content edits in README 2013-03-16 19:09:54 -07:00
alisdair sullivan
a3ab40aa88 add r16b to travis config 2013-03-12 22:13:48 -07:00
alisdair sullivan
f0f43c4aba v1.4.1 2013-03-11 19:10:08 -07:00
alisdair sullivan
6cfe5d6661 Merge pull request #30 from macintux/macintux-readme-fix
Invert the description of encode
2013-03-11 00:51:58 -07:00
alisdair sullivan
0441224998 update license dates 2013-03-10 20:30:24 -07:00
alisdair sullivan
7f7d824116 fix edge case involving dirty_strings 2013-03-10 20:26:46 -07:00
alisdair sullivan
96ca5d4d63 coding style 2013-03-10 19:58:13 -07:00
alisdair sullivan
5e54bb3458 perf enhancements in string 2013-03-10 19:54:43 -07:00