Skip to content

Instantly share code, notes, and snippets.

@AnthonyGiretti
Created March 7, 2026 23:41
Show Gist options
  • Select an option

  • Save AnthonyGiretti/53be98af6e5c1bfc1e27fb31cd1f739a to your computer and use it in GitHub Desktop.

Select an option

Save AnthonyGiretti/53be98af6e5c1bfc1e27fb31cd1f739a to your computer and use it in GitHub Desktop.
ASP.NET Core 10 introduces a native JsonPatch implementation built directly on top of System.Text.Json
using Microsoft.AspNetCore.JsonPatch;
using System.Text.Json;
var patch = JsonSerializer.Deserialize<JsonPatchDocument<Product>>(patchJson);
patch!.ApplyTo(product);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment