Utf8Json
Utf8Json copied to clipboard
Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
Very valuable addition to avoid zero-copy would be API to serialize into `Span/Memory`. If there is not enough space - then return false. But the happy path for message of...
#87 asks for reading from `Span` and/or `Memory`. That's good to have. However, to be truly efficient when deserializing incoming data, say, in a controller method, everyone will still be...
- Handles `JsonParsingException` when the input JSON cannot be parsed - Examines client’s `Accept` header to decide whether JSON can be returned
when deserializing ```json { "branches_enabled": [] } ``` to ```c# public class ConcurrentHashSet : IEnumerable, IDisposable {} ``` the following exception is thrown > **Utf8Json.JsonParsingException:** 'expected:'{', actual:'[', at offset:23'
`System.Text.Json` will be addet to .NET Core 3.0. Would it be possible to add some performance benchmark between `Utf8Json` and `System.Text.Json`?
We are currently moving from JIL to Utf8json, but have found that the enum parsing is case sensitive, unlike in JIL, which parses enums irrespective of the casing. Wondering if...
Deserializing immutable object with SnakeCase resolver is throwing exception. Repro code: ```csharp public class Person { public readonly int Age; public readonly string FirstName; public Person(int age, string firstName) {...
``` [Fact] public void Test() { var value = new MyObject(); //throws Utf8Json.JsonSerializer.ToJsonString(value); } public class MyObject { public string Value => throw new Exception(); } ``` Is there any...
Code that I run to test serialization: ```f# open System open FSharp.Data open Utf8Json open System.Linq open System.Collections.Generic let ls = [ for i in 0..3-> {|Id = i; Name...
Hi, Thanks for very nice library. I'd like to use this with Unity, and I'm working on Mac (Sierra) but UniversalCodeGenerator is not working for me. Here is the error...