[C#] JSON Parsing .. Json.Net Library 이용
페이지 정보
작성자 sbLAB 댓글 0건 조회 6,605회 작성일 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();
}
}
댓글목록
등록된 댓글이 없습니다.