talentdeficit/jsx — pull request #15 by muxspace (2012-05-23 19:01:47+00:00)
Title: Support pre_encode in jsx_to_json.erl

Hi, I added support for the pre_encode hook in the handler jsx_to_json.erl. While pre_encode is supported in the options list, it wasn't available in the #opts record, nor the corresponding parse_opts() definition.

I also added a test that shows example usage, in addition to updating all the eunit ?_assertEqual()s to be semantically correct (arguments should be Expected, Expr [1]).

[1] http://www.erlang.org/doc/apps/eunit/chapter.html