Utf8Json
Utf8Json copied to clipboard
Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
I'm trying to deserialize an enum but with no luck. Following a simple example of what is going wrong: ``` const string incomingStringFromMicroservice = @"{""Name"":""Greg"",""fruit"":""Apple""}"; var newtonsoftFruit = Newtonsoft.Json.JsonConvert.DeserializeObject(incomingStringFromMicroservice); var...
@neuecc Just wanted to check in to see if you still plan on maintaining this project. As of writing, there are currently 22 PRs and 87 issues. Most of these...
I have an implementation that works fine on Unity Editor (macOS) but I am having trouble getting the same code to work on iOS. The code does not use any...
The nuget package shouldn't include ValueTuple as a dependency for netstandard2 (see https://github.com/neuecc/Utf8Json/blob/master/src/Utf8Json/Utf8Json.csproj#L63). You can put in a conditional check in the project file to fix this.
When I deserialize json that contains `{"address":"an address","amount":null}` to a target Type like ``` public class Recipient { public string Address { get; set; } public long Amount { get;...
This did come somewhat unexpected: ``` Did serialize with Json.NET in 2.606s Did serialize with UTF8Json in 3.998s ``` Code to Test: ``` using System; using System.Diagnostics; using System.IO; using...
Hey, thanks for the wonderful project! I've had several questions/suggestions regarding AspNetCore formatter implementations. 1. The content type is hardcoded, with no way to specify multiple content type or customize...
According to [ISO 8601 durations](https://en.wikipedia.org/wiki/ISO_8601#Durations), this unit test should pass: ```c# [Fact] public void Test_TimeSpan() { // Arrange const string expected = "{\"T\":\"PT36H\"}"; var timespan = new Wrapper(TimeSpan.FromHours(36)); // Act...
The Utf8Json.JsonSerializer.ToJsonString method is throwing an error when I try to serialize an object of type System.Type under specific circumstances. As follows: - The System.Type object must be passed to...
Reading failed in jsons like ``` { "field": "value" } // this comment will break up reading ``` due to the fact that '\0' symbol is not processed.