Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Online tool to convert JSON to C# object format [closed]

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!

like image 596
jedd.ahyoung Avatar asked Aug 09 '12 23:08

jedd.ahyoung


People also ask

How can I read JSON files online?

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.

What is QuickType io?

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.


2 Answers

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.

like image 196
saber Avatar answered Oct 24 '22 18:10

saber


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.

enter image description here

like image 5
George Mamaladze Avatar answered Oct 24 '22 17:10

George Mamaladze