This is another one of my years old projects.
It’s a JSON parser made from scratch that uses reflection so that you can use it just like JS if you use dynamic
It can also stringify objects.
Good luck trying to understand the library code though lol
https://replit.com/@CSharpIsGud/JsonSharp2?v=1
Console.WriteLine("Serialization: ");
string serialized = Json2.Stringify(new Test());
Console.WriteLine(serialized);
Console.WriteLine();
dynamic json = Json2.Parse(serialized);
Console.WriteLine(json.String);
Console.WriteLine(json.Number);
Console.WriteLine("Array: ");
foreach (string str in json.Array) {
Console.WriteLine(str);
}