LoginSignup
2
3

More than 5 years have passed since last update.

JSONを自力でパースする

Last updated at Posted at 2016-06-23

.NETでJSONをパースするためにはライブラリを入れなくてはいけない。
なので、自分でパース処理を書いてみました。
350行程度で実現。

要するに辞書の辞書が返ってくればいい、というシンプルなものです。

ソース

使い方

JSONLight json = new JSONLight(jsontext);
Dictionary<string, object> dict = json.Parse();

// JSONに戻す.
string jsonSerialize = json.Serialize();

返却される値

辞書の辞書です。以下入れ子。

Dictionary< "", Dictionary<string,object> >
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3