anchor.diff:      BinaryJson = binary:list_to_bin(Json),
       %% Converts the binary into a string.
       binary:bin_to_list(BinaryJson).
  -
  -set_attr(Attr, Value) when is_atom(Attr) ->
  -    set_attr(binary:list_to_bin(atom_to_list(Attr)), Value);
  -set_attr(Attr, Value) when is_binary(Attr) ->
  -    {struct, [{Attr, Value}]};
  -set_attr(Attr, Value) when is_list(Attr) ->
  -    set_attr(binary:list_to_bin(Attr), Value).
   
   
   %% @doc
  
positive.code: 	    false
      end.
  
  
  %% @doc
  %% Function: to_string/1
  %% Purpose:  Make a mochijson representation into a string
  %% Returns:  string()
  %% @end
  %% to_string(Json) when is_list(Json) ->
  %%     Json.
  
  to_string(Json) when is_tuple(Json) ->
      to_string(encode(Json));
  to_string(Json) ->
  
negative.code:     AddedId = lists:map(fun(X) -> decode(get_and_add_id(X)) end, HitsList),
      HitsAttr = set_attr(hits, AddedId),
      to_string(HitsAttr).
  
  
  %% ====================================================================
  