Serialize Query-Parameter in Retrofit
问题 Imagine the following request: @POST("/recipes/create") void createRecipe(@Query("recipe") Recipe recipe, Callback<String> callback); I would like to have toJson(recipe) but unfortunately my request is just calling toString() for my recipe which does not work at all. I could override the toString inside of Recipe but I'd rather have a general solution. I cannot use @Body as I need to specify, what I'm sending (i need to have "recipe=json(theRecipe)". I also cannot change the serialization to