Open xiaoyuvax opened 1 year ago
The source generator for Json is not included and there's no way to enable it right now. Yeah, it should be fixed.
I prefer a solution for bflat to work with Json.NET, since most of my projects use it. seems the Root descriptor the last hope?
+1. This is an needed feature which some of my projects indeed uses JSON. I don't know any other json libs that runs on native aot...
+1 too. Its not just json. Source Generators can help avoid memory allocations in the first place and hide some weird quirks while working with memory management using zerolib.
such as Utf8Json, which is recommneded for application compiled by dotnet nativeAOT to serilize/de json without reflection. as mentioned in: https://github.com/dotnet/runtimelab/issues/635
i don't know if bflat also has that json problem and i also wonder about the source generator.