general
System.Text.Json Articles, Tutorials & News
System.Text.Json articles, tutorials, and news from the DotNetNews archive.
60 articles Updated
System.Text.Json work shows up across many DotNetNews issues because teams keep hitting the same implementation questions. System.Text.Json is a recurring focus for C# and .NET developers working in the Microsoft ecosystem.
Recurring subtopics in recent issues include System.Text.Json C#, JSON source generation, JSON serialization .NET, and json. When a subtopic never appears in the archive titles or excerpts, it is left out of this introduction.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for System.Text.Json; the archive list is chronological and larger. Secondary angles such as System.Text.Json C# and System.Text.Json appear when the archive actually covered them. Cross-links to Newtonsoft.Json for C# and C# help when the problem spans more than one tag.
Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.
Start here
Editor picks for System.Text.Json
-
Newtonsoft.Json vs System.Text.Json Which Should You Use in .NET?
Medium Issue #444
A solid practical comparison of the two JSON stacks, especially if you're balancing legacy compatibility against newer platform defaults and performance.
-
Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1)
Steve Gordon – Code with Steve Issue #374
Covers encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1).
-
Make JSON Fast Again in .NET
blog.stackademic.com Issue #303
System.Text.Json performance patterns: source-gen, Utf8JsonReader, UnsafeRelaxedJsonEscaping, and buffer reuse.
-
Optimizing JSON Serialization in .NET: Newtonsoft.Json vs. System.Text.Json
elmah.io Blog - .NET Technical tutorials/guides and new features Issue #176
A useful comparison that goes beyond syntax and looks at JSON serialization tradeoffs and performance.
-
Explaining System.Text.Json in .NET
csharp.com Issue #151
System.Text.Json remains essential knowledge for most modern .NET apps.
-
System.Text.Json vs. Newtonsoft.Json: Which One Should You Use in .NET 9?
Medium Issue #144
https://medium.com/@ashokreddy343/system-text-json-vs-newtonsoft-json-which-one-should-you-use-in-net-9-535b752915ae.
-
You don't need to create all properties inside a DTO to successfully deserialize
C# Corner Issue #504
Covers you don't need to create all properties inside a DTO to successfully deserialize.
-
.NET 11 Preview 8: New Features and Breaking Changes Explained
C# Corner Issue #501
Preview coverage is always helpful, especially when breaking changes are called out plainly.
Archive
Page 1 of 3
Newest first
-
Adding JsonPath support to custom object models in .NET
Meziantou's blog - Gérald Barré Issue #555
In , we used JsonNode as the input type. If your data is already loaded in domain classes, you can evaluate JsonPath directly on those classes without converting to JsonNode. Meziantou.Framework.JsonP...
-
Using JsonPath with System.Text.Json to query JSON in .NET
Meziantou's blog - Gérald Barré Issue #550
When you need to extract values from complex JSON payloads, manual navigation quickly becomes hard to read and maintain. Meziantou.Framework.JsonPath provides a JSONPath implementation for System.Text...
-
System.Text.Json Polymorphism with Swagger in .NET 7
Medium Issue #546
Polymorphic JSON is not finished when System.Text.Json can serialize a derived type. The same discriminator contract must survive OpenAPI…
-
Use C# unions and closed hierarchies in ASP.NET Core
Microsoft Dev Blogs Issue #542
Sometimes an API contract says that a value can have more than one JSON type. Kubernetes has a practical example: maxUnavailable can be an absolute number, such as 2, or a percentage, such as "25%". I...
-
The pain of serializing unions and closed class hierarchies with System.Text.Json: Exploring the .NET 11 preview - Part 7
Andrew Lock | .NET Escapades Issue #536
In this post I discuss the System.Text.Json support for unions and closed hierarchies coming in .NET 11, the decisions made, and some of the sharp edges I hit
-
Reduce Error Message Allocations with a .NET JSON Schema Validation Option
blog.devgenius.io Issue #535
High-performance JSON Schema validation is not only about accepting valid input quickly. In many real systems, the harder path is… Continue reading on Dev Genius »
-
.NET 11 HTTP Compression: Benchmarking Large JSON APIs Under CPU Pressure
C# Corner Issue #533
Benchmark HTTP compression in .NET 11 APIs with large JSON responses to measure bandwidth savings, CPU usage, latency, and throughput under load.
-
A field guide to .NET data formats
C# Digest Issue #531
different data formats each have their own query language
-
A Field Guide to .NET Data Formats
Bipin Joshi .NET | Thus said a Byte • Insights on .NET and Web Development Issue #523
In Part 1, we made the case that every data format grows its own language because the shape of the data dictates what kind of navigation makes sense. This part is the reference you actually bookmark: ...
-
Control String Comparison in .NET JSON Assertions
blog.devgenius.io Issue #517
JSON assertions usually require exact values, but casing is not always meaningful. For example, an API might return "ACTIVE" while a test… Continue reading on Dev Genius »
-
Blazor WASM: Why IsTrimmable=false Isn't Enough - And What Source Generation Actually Fixes
C# Corner Issue #516
Blazor WASM trimming can break JSON deserialization. Learn why IsTrimmable=false fails and how System.Text.Json source generation provides a robust fix.
-
Benchmarking JSON Serialization Options in .NET 11
C# Corner Issue #514
Compare .NET JSON serializers: System.Text.Json, Source Generation, and Newtonsoft.Json. Benchmark for optimal performance.
-
You don't need to create all properties inside a DTO to successfully deserialize
C# Corner Issue #504
Short example on JSON serialisation aimed to combat excessive use of JObjects
-
.NET 11 Preview 8: New Features and Breaking Changes Explained
C# Corner Issue #501
.NET 11 Preview 8: Explore new features like runtime performance, Native AOT, and JSON serialization. Prepare for breaking changes.
-
Case‑Insensitive JSON Schema Validation in .NET: Customizing String Comparison
blog.devgenius.io Issue #485
By the spec, JSON Schema compares strings exactly — code point for code point. Here’s how to make enum, const, and uniqueItems… Continue reading on Dev Genius »
-
💻 Issue 519 - Evolving your C# types without migrating stored JSON
Awesome .NET Weekly Issue #484
-
Structured Outputs in LLM Applications: A Complete C# Developer Guide
C# Corner Issue #479
Learn how to implement structured outputs in C# AI applications. Discover schema validation, strongly typed models, JSON responses, and best practices for building reliable enterprise LLM solutions.
-
String vs JSON vs Object in .NET — Why Beginners Get Confused
Medium Issue #446
When I started working with APIs in .NET, this was one of the most confusing things:
-
Newtonsoft.Json vs System.Text.Json Which Should You Use in .NET?
Medium Issue #444
If you’ve worked with JSON in .NET, you’ve probably seen two different ways to handle it:
-
Serialization vs Deserialization in .NET — Explained Simply
Medium Issue #443
When I first started working with APIs in .NET, I kept seeing these two terms everywhere:
-
High-Performance .NET APIs: Zero-Allocation Serialization Explained
Medium Issue #435
1. Real-World Problem Scenario
-
Copilot CLI in VS Code
YouTube Issue #412
.NET 10: System.Text.Json Improvements
-
Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1)
Steve Gordon – Code with Steve Issue #374
In this multi-part blog series, we’ll build a reasonably full-featured code base for automatically encrypting/decrypting specific properties on types that are being serialised and deserialised using S...
-
MAUI, EF Core, and auth hardening
DotNetNews Issue #355
A varied .NET roundup with MAUI resources, EF Core migrations and bulk retrieval, authentication hardening, HttpClientFactory, and more.
-
ASP.NET Core 9 performance, .NET 10 changes
DotNetNews Issue #334
A varied .NET roundup covering ASP.NET Core 9 speedups, .NET 10 breaking changes, logging, collections, rate limiting, and cloud updates.