Commit graph

1140 commits

Author SHA1 Message Date
alisdair sullivan
3fe01062e7 Merge branch 'multibytebugfix' into develop 2013-10-29 19:45:12 +00:00
alisdair sullivan
d06b64e4bd replace incorrect boolean shortcircuits in multibyte escaping 2013-10-29 19:44:28 +00:00
alisdair sullivan
7b9170b32d add `Config' arg to rep manipulation 2013-10-29 19:15:16 +00:00
alisdair sullivan
7296f790b2 convert all space/newlines in json formatter to emit binaries 2013-10-27 01:28:49 +00:00
alisdair sullivan
5409668cf4 abstracted internal state of `jsx_to_json'. uses same interface as
`jsx_to_term'
2013-10-26 14:45:36 +00:00
alisdair sullivan
625f912e7b generate test state from init/1' in jsx_to_term' and `jsx_to_json'
instead of doing it by hand
2013-10-25 01:39:59 +00:00
alisdair sullivan
62914f422a abstracted internal state of the `jsx_to_term' handler 2013-10-24 05:01:20 +00:00
alisdair sullivan
1909687aff fix format of incomplete tests in jsx_decoder 2013-10-21 06:25:45 +00:00
alisdair sullivan
f6ebd9a1c4 remove inconsistent custom error_handler' and incomplete_handler'
tests pending reimplementation
2013-10-21 06:22:49 +00:00
alisdair sullivan
96f76b6178 further refactoring of test suite 2013-10-21 05:46:53 +00:00
alisdair sullivan
4f08d5355f fix bug where escape characters were getting dropped when operating
under `dirty_strings'
2013-10-20 21:20:55 +00:00
alisdair sullivan
486fda2a74 refactor test suite for additional completeness and clarity 2013-10-20 21:06:51 +00:00
alisdair sullivan
f340e8dc22 refactor options to complete mission: more pragmatism 2013-10-20 03:28:22 +00:00
alisdair sullivan
99484ce4f2 minor refactor of jsx_decoder 2013-10-20 03:23:38 +00:00
alisdair sullivan
a83fa3598d comments allowed by default. pragmatism 1 literalists 0 2013-10-20 03:20:36 +00:00
alisdair sullivan
f137ff484b fix bad utf8 encodings by default (convert to u+FFFD)
this (temporarily, i hope) removes the fast path for handling
strings internally without escaping or replacing bad utf8
2013-10-20 03:16:56 +00:00
alisdair sullivan
7b05d0e1b7 remove deprecated option flags handling 2013-10-20 03:12:29 +00:00
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