I'm looking for a quick and simple way to convert large JSON objects in a text file to C# object notation for a company project. I would prefer an online solution (similar to jsbeautifier.org) that would take my code, parse it, and return a C# formatted object.
Are there any tools (preferably online) that will do this? I'm hoping not to do this by hand, but writing a script might take time that I don't have right now. (I'm not too well-versed with C# library calls.)
Thank you!
JSON Viewer is an online web-based tool which helps to view, analyze JSON data simply along with formatting. Just upload JSON file/paste JSON code & view it.
quicktype generates strongly-typed models and serializers from JSON, JSON Schema, and GraphQL queries, making it a breeze to work with JSON type-safely in any programming language. Try quicktype in your browser.
I think following link will help.
Generate c# classes from json
Actually it uses the same project which achitaka-san said in his post. You can create a simple WebService in any host and use it.
This application generates C# classes from a sample JSON text, so you can use strongly typed programming with JSON.
http://jsonclassgenerator.codeplex.com
This is not online, but you just download an EXE, paste your JSON and get a c# class - taht's it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With