anchor.diff:  	",\"query\" : {\"filtered\" : "++NewJson++
   	",\"filter\" : {\"bool\" : {\"must_not\" : {\"term\" : {\"private\" : \"true\"}}}}}}}";
   filter_json(Json, From, Size, Sort, true) ->
  -    case lib_json:get_field(Json, "sort") of 
  -        undefined -> 
  -            UseSort = "\"" ++ Sort ++ "\"", 
  +    case lib_json:get_field(Json, "sort") of
  +        undefined ->
  +            UseSort = "\"" ++ Sort ++ "\"",
               SortJson = Json;
  -        SortValue when is_binary(SortValue) -> 
  +        SortValue when is_binary(SortValue) ->
               UseSort = "\"" ++ binary_to_list(SortValue) ++ "\"",
               SortJson = lib_json:rm_field(Json, "sort");
  -        SortValue -> 
  +        SortValue ->
               UseSort = SortValue,
               SortJson = lib_json:rm_field(Json, "sort")
       end,
  
positive.code: %% @doc
  %% Function: content_types_accepted/2
  %% Purpose: based on the content-type on a 'POST' or 'PUT', we know which kind of data that is allowed to be sent to the server.
  %%          A code 406 is returned to the client if we don't accept a media type that the client has sent. 
  %% Returns: {[{Mediatype, Handler}], ReqData, State}
  %% @end
  -spec content_types_accepted(ReqData::tuple(), State::string()) -> {list(), tuple(), string()}.
  
negative.code:                     end
              end
      end.
  
  
  
  
  