anchor.diff:  -author('bob@mochimedia.com').
   -export([encoder/1, encode/1]).
   -export([decoder/1, decode/1]).
  +-export([binary_encoder/1, binary_encode/1]).
  +-export([binary_decoder/1, binary_decode/1]).
   -export([test/0]).
   
   % This is a macro to placate syntax highlighters..
  
positive.code: decode(S) ->
      json_decode(S, #decoder{}).
  
  test() ->
      test_all().
  
  %% Internal API
  
  
negative.code: %%                          {handler, function()}
  %% @type decoder_option() = {input_encoding, encoding()} |
  %%                          {object_hook, function()}
  %% @type bjson_string() = binary()
  %% @type bjson_number() = integer() | float()
  %% @type bjson_array() = [bjson_term()]
  %% @type bjson_object() = {struct, [{bjson_string(), bjson_term()}]}
  %% @type bjson_term() = bjson_string() | bjson_number() | bjson_array() |
  %%                      bjson_object()
  %% @type binary_encoder_option() = {handler, function()}
  %% @type binary_decoder_option() = {object_hook, function()}
  
  -record(encoder, {input_encoding=unicode,
  		  handler=null}).
  