1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unity AssetsAdvent Calendar 2016

Day 23

HoloLensで使えるJSONパーサー

Posted at

この記事は Unity Assets Advent Calendar 2016 23日目の記事になります。

HoloLens実機転送時に動かない原因の上位にランクインするJSONパーサーの問題を解決するアセットを紹介します。

JSON Object 1.6 (Jan 25, 2016)

image

使い方

// 初期化
JSONObject j = new JSONObject(responseString);

 // 全文確認
Debug.Log(j);

// キー指定して値読み込み
Debug.Log(result.GetField("scores").GetField("happiness"));

// floatで読み込み
if (happinessThreshold > result.GetField("scores").GetField("happiness").f)
1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?