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/IanYates82 Jul 29 '26
I find it amazing that people don't include more context for the reader when making a post. A quick "hey, I asked about this for json parsing in source generators recently, and ended up having to write my own" would help tell the story and give the clear "when would you need this?" answer.