Json Patch Request using Volley Android

I have the following code.

ObjectMapper mapper = new ObjectMapper();
JsonNode source = mapper.readTree(oldJson);
JsonNode target = mapper.readTree(newJson);
JsonPatch patch = JsonDiff.asJsonPatch(source,target);

Now, how can I send this patch object via Volley using Request.Method.PATCH?

I know how to send String and JsonObject GET / POST requests via Volley, but could not understand what a Patch Request is.

+4
source share

Source: https://habr.com/ru/post/1621532/


All Articles