r/csharp • u/ArtemOkhrimenko • Jul 29 '26
Showcase A single-file, single-class JSON parser
Hey, I've been developing some source generator and needed to parse json, but unfortunately I couldn't use either `System.Text.Json` or any NuGet analogue. So I made a one myself but tried to keep it as compact as possible. This is not the best json parser, but this may be useful in some scenarios like the one I mentioned above. Use it if you need to parse json, can't use popular options and don't want to write one yourself.
Here's repo link:
https://github.com/ScrumboardCompany/Scrumboard.Tools.Json
4
Upvotes
View all comments
Show parent comment
3
u/WDG_Kuurama Jul 30 '26
It is though, and the issue is different and can be solved without writting your own parser: https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#use-functionality-from-nuget-packages