Write List<double> to Json array without indentation using System.Text.Json Writing List double to JSON Array without Indentation Using System Text Json Problem You need to serialize a List double to a JSON array using System Text Json 2 min read 06-10-2024 7
System.Text.Json.JsonException: The JSON value could not be converted Decoding the Mystery System Text Json Json Exception The JSON value could not be converted Have you ever encountered the cryptic error message System Text Json 2 min read 06-10-2024 2
Avoid recursion with custom system.text.json converter Escape the Recursive Rabbit Hole Using a Custom System Text Json Converter to Avoid Stack Overflow Recursion is a powerful tool in programming allowing function 3 min read 05-10-2024 7
Using a Custom Enum Json Converter Mastering Custom Enum Json Converters Streamlining Your JSON Handling JSON Java Script Object Notation has become the ubiquitous data exchange format in modern 2 min read 05-10-2024 5
Number decimal precision with System.Text.Json Mastering Decimal Precision in NET with System Text Json Serializing data with decimals using NETs System Text Json library can sometimes lead to unexpected res 2 min read 04-10-2024 10
JsonSerializer deserialize as simple type Deserializing JSON to Simple Types with Json Serializer A Comprehensive Guide Serializing and deserializing data is a crucial part of many modern applications e 2 min read 04-10-2024 10
How to serialize properties into separate Json using System.Text.Json in C#? Separating Properties into Individual JSON Files with System Text Json in C Serializing complex objects into JSON is a common task in C However sometimes you ne 2 min read 04-10-2024 11
How to transform "Types" a List<string> foo class property into a SQL Server table [Types](FooID int, name nvarchar) with Entity Framework Core Transforming a List string Property into a SQL Server Table with Entity Framework Core When working with Entity Framework Core developers often encounter scenar 2 min read 29-09-2024 3
Use System.Text.Json converters with JsonTypeInfo for AOT Using System Text Json Converters with Json Type Info for Ahead of Time AOT Compilation In this article we will explore how to leverage System Text Json convert 3 min read 25-09-2024 15
Ban entire namespace with BannedApiAnalyzers How to Ban an Entire Namespace with Banned Api Analyzers In software development it s not uncommon to run into situations where certain APIs or namespaces shoul 2 min read 14-09-2024 25
Is polymorphic deserialization possible in System.Text.Json? Is Polymorphic Deserialization Possible in System Text Json When working with JSON data in NET applications developers often need to handle scenarios where the 2 min read 14-09-2024 27
How do you read a simple value out of some json using System.Text.Json? Extracting Values from JSON with System Text Json A Simple Guide System Text Json is a powerful library for handling JSON data in NET While it excels at mapping 2 min read 05-09-2024 14
Deserialize very large json from a chunked array of strings using system.text.json Deserializing Large JSON Chunks with System Text Json A Memory Efficient Approach Migrating data from SQL to Mongo DB can be a daunting task especially when dea 2 min read 05-09-2024 17
How to pretty print using System.Text.Json for unknown object Pretty Printing JSON Strings with System Text Json A Guide System Text Json the new JSON serializer in NET offers a powerful and efficient way to work with JSON 2 min read 04-09-2024 21
Deserialise Json Timestamp with System.Text.Json Deserializing JSON Timestamps with System Text Json A Comprehensive Guide When working with JSON data and NET you often encounter timestamps represented as nume 2 min read 04-09-2024 16
How to serialize object in ASP.NET Core/6 using a camelCase? Mastering JSON Serialization in ASP NET Core 6 with Camel Case When working with ASP NET Core 6 and building RES Tful APIs you often deal with serializing and d 2 min read 04-09-2024 19
System.Text.Json.Serialization replacement for Netwtonsoft's JsonObjectAttribute NamingStrategy setting Ditching Newtonsoft Json A Guide to Naming Conventions in System Text Json Migrating from Newtonsoft Json Json NET to System Text Json in NET 6 and beyond One o 2 min read 04-09-2024 17
JsonSerializer.DeserializeAsyncEnumerable async processing and torn JSON stream behaviour Understanding JSON Stream Processing with Json Serializer Deserialize Async Enumerable When working with large JSON datasets efficiently processing them in a st 2 min read 03-09-2024 22
Enforce the use of Utf8JsonReader.ValueSequence for test purposes Enforcing Utf8 Json Reader Value Sequence for Testing A Deep Dive When working with JSON serialization and deserialization in NET you might encounter situations 2 min read 01-09-2024 22
Why is using JsonSerializer.DeserializeAsyncEnumerable to deserialize a 1GB file resulting in 2GB+ memory allocation? Understanding Memory Allocation During JSON Deserialization A Deep Dive When dealing with large JSON files efficient memory management is crucial You might expe 2 min read 31-08-2024 24
Don't escape single quotes with System.Text.Json Dont Escape Single Quotes with System Text Json A Guide When working with JSON serialization in NET Core you might encounter the need to prevent single quotes f 2 min read 31-08-2024 22
From a minimal ASP.NET Core Web API how do I return a JObject while maintaining the nested elements? Preserving Nested Structure When Returning J Object in ASP NET Core Web API In ASP NET Core Web API returning a J Object can sometimes lead to the loss of neste 2 min read 30-08-2024 24
Source Generator not running when using System.Text.Json.JsonSerializer Troubleshooting Source Generators and System Text Json A Deep Dive Source generators are a powerful feature in C that allow you to generate code at compile time 3 min read 29-08-2024 18
Serializer not returning expected output in .NET Core Troubleshooting Serializer Output in NET Core Why Null Lists Become Empty Arrays This article delves into a common issue in NET Core web APIs null lists being s 2 min read 29-08-2024 18
Problem with Serializing JSON to CamelCase in C# The Case of the Missing Camel Case Why Your C JSON Serialization Isnt Changing Case Serializing JSON objects in C to match specific naming conventions is a comm 2 min read 29-08-2024 22