[C#] JSON Parsing .. Json.Net Library 이용 > C#/.Net/Blazor/IIS

본문 바로가기
사이트 내 전체검색

C#/.Net/Blazor/IIS

[C#] JSON Parsing .. Json.Net Library 이용

페이지 정보

작성자 sbLAB 댓글 0건 조회 6,158회 작성일 18-07-25 18:02

본문


using System.Net.Json;
 
class Program
{
static void Main(string[] args)
{
String inJson = "{'name':'test', 'type':'test'}";
 
JsonTextParser parser = new JsonTextParser();
JsonObject obj = parser.Parse(outJson);
JsonObjectCollection col = (JsonObjectCollection)obj;
 
string name = (string)col["name"].GetValue();
string type = (string)col["type"].GetValue();
} 
}
 

댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
234
어제
407
최대
1,279
전체
212,004

그누보드5
Copyright © sebom.com All rights reserved.