재우니의 블로그

https://archive.codeplex.com/?p=jsonclassgenerator

 

CodePlex Archive

An archive of the CodePlex open source hosting site

archive.codeplex.com

 

 

json 형태의 문자값을 c# 의 class 로 generate 해주는 어플리케이션 인데요. json 을 strongly typed 로도 사용할 수 있게 해 두었다고 하네요. 현재는 typed arrays, typed objects, integers, floats, booleans, strings 그리고 nullable type 까지 지원하고 있다고 합니다.

 

 

 

 

위의 generate 프로그램으로 생성된 c# 클래스를 바탕으로 활용하는 방법은 아래 코드와 같습니다.

사용법은 아래와 같습니다.

 

 

jsontils.com

 

인터넷 환경이 된다면, json 문자열을 온라인 상에서 generator 해주는 사이트도 존재하네요..
jsontils.com 을 제일 추천 드립니다.

 

 

https://jsonutils.com/

 

JSON Utils: Generate C#, VB.Net, SQL Table, Java and PHP from JSON

Lots of tools out there already, why do we need another? I was tired of having multiple tabs open to convert objects, then another to view the data, and another to clean it up. I wanted one tool where I could see everything side by side. Hope you enjoy. Ca

jsonutils.com

https://app.quicktype.io/#l=cs&r=json2csharp

 

Instantly parse JSON in any language | quicktype

 

app.quicktype.io

 

 

visual studio

 

visual studio 툴을 가지고 계신다면.. Paste JSON As Classes 또는 XML As Classes 통해 간단히 클래스를 만들수 있습니다.

 

 

https://www.c-sharpcorner.com/article/how-to-paste-json-as-classes-or-xml-as-classes-in-visual-stu/

 

How To Paste JSON As Classes Or XML As Classes in Visual Studio

In this article, I will explain you how to paste JSON or XML as classes in Visual Studio.

www.c-sharpcorner.com

https://kin33.tistory.com/52

 

XML, JSON을 Class로 만들기

XML이나 JSON은 플랫폼 구분 없이 데이터를 교환할 수 있는 데이터 포맷이다. 이런 장점 때문에 많은 곳에서 사용된다. 요즘은 보다 간결한 JSON이 많이 쓰이지만 XML도 무시하지 못 할만큼 사용된다

kin33.tistory.com

 

visual studio code

 

visual studio code 툴이 있다면... json 을 간단히 여러가지 언어의 class 를 생성해 줍니다.

 

 

typeScript, Python, Go, Ruby, C#, Java, Swift, Rust, Kotlin, C++, Flow, Objective-C, JavaScript, Elm, and JSON Schema.

https://marketplace.visualstudio.com/items?itemName=quicktype.quicktype

 

Paste JSON as Code - Visual Studio Marketplace

Extension for Visual Studio Code - Copy JSON, paste as Go, TypeScript, C#, C++ and more.

marketplace.visualstudio.com