anchor.diff:  %% Returns: The number of fields in the given JSON
   %% @end
   -spec count_fields(Json::string(),Position::integer()) -> integer().
  -
   count_fields(Json,Pos) ->
   	case Pos == length(Json) of
   		true -> 0;
  
positive.code: %% @end 
  -spec get_and_add_id(JsonStruct::mochijson()) -> json_output_value().
  get_and_add_id(JsonStruct) ->
      Id  = get_field(JsonStruct, "_id"),
      SourceJson  = get_field(JsonStruct, "_source"),
      add_value(SourceJson, "id", Id).
  
  %% @doc 
  %% Gets the 'password' from the root, gets the '_source'. Adds password as 
  
negative.code: %% Returns: The number of fields in the given JSON
  %% @end
  -spec count_fields(Json::string()) -> integer().
  count_fields(Json) ->
  	count_fields(Json,1).
  
  