anchor.diff:      
       
   
  -
  +%% @doc
  +%% Function: field_recursion/3
  +%% Purpose: Handles recursion over the specific fields in a json object 
  +%% Returns: Either the found value or 'false'
  +%% @end
   field_recursion(Json, QueryParts, Value) ->
       field_recursion(Json, QueryParts, Value, "").
   
  
positive.code:     mk_pretty(Result).
  
  %% @doc
  %% Function: get_field_/2
  %% Purpose: Return the value of a certain field in the given JSON string.
  %% Returns: Return the value of the specified field, if it exists,                                  
  %%          otherwise returns the empty string.
  %% To-Check:  what if there is a ',' inside a Value??? It will fail?
  %% @end
  get_field_help(Json, Query) ->
      JsonObj = mochijson2:decode(Json),
      JsonParser = destructure_json:parse("Obj."++Query),
      JsonParser(JsonObj).
  
  
  
  get_field_value(Json, Query, Value) ->
      QueryParts = find_wildcard_fields(Query),
      case field_recursion(Json, QueryParts, Value) of
  
negative.code:     end.
  
  
  %% @doc
  %% Function: mk_pretty/1
  %% Purpose:  Make a json representation more readable. The functions in the 
  %%           mochijson2 module is hard to read because it is often binaries
  %% Returns:  list, tuple and string representation of the json object
  %% @end
  mk_pretty(Json) when is_binary(Json) ->
      binary_to_list(Json);
  
  mk_pretty(Json) when is_integer(Json) ->
      integer_to_list(Json);
  
  mk_pretty(Json) when is_list(Json) ->
      lists:map(fun mk_pretty/1, Json);
  
  mk_pretty({struct, Values})  ->
      ValuesList = lists:map(fun tuple_to_list/1, Values),
      StringValues = lists:map(fun mk_pretty/1, ValuesList),
      lists:map(fun list_to_tuple/1, StringValues);
  
  mk_pretty(Json) ->
      Json.
  
  %% ====================================================================
  %% Internal functions
  %% ====================================================================
  %% @doc
  %% Function: encode_help/1
  %% Purpose: Helper function for making a string of a tuple and list 
  %%          representation of a json object
  %% Returns: string()
  %% TODO: NOT COMPLETED YET
  %% @end
  encode_help(Json) when is_tuple(Json)->
      JsonList = tuple_to_list(Json),
      encode_help(JsonList, "").
  