Skip to content

Instantly share code, notes, and snippets.

View azizamohamedabdelsalam's full-sized avatar

Aziza Abdelsalam azizamohamedabdelsalam

View GitHub Profile
@azizamohamedabdelsalam
azizamohamedabdelsalam / JsonPatchUtils.java
Created February 5, 2024 15:42 — forked from aoudiamoncef/JsonPatchUtils.java
JSON Patch and JSON Merge Patch to objects using Jackson
package com.maoudia;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.gravity9.jsonpatch.JsonPatch;
import com.gravity9.jsonpatch.JsonPatchException;
import com.gravity9.jsonpatch.mergepatch.JsonMergePatch;
import jakarta.validation.constraints.NotNull;