質問編集履歴
2
使用ライブラリの記入。
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,4 +27,16 @@
|
|
27
27
|
「object型には[]は使えない」と書かれていて「Dictionary<string, object> response = Json.Deserialize(request.downloadHandler.text) as Dictionary<string, object>;」の「<string, object>」の部分を直せばよさそうな気がしますがそれがわかりません。
|
28
28
|
よろしくお願いいたします。
|
29
29
|
|
30
|
+
追記:
|
31
|
+
使っているライブラリは以下のとおりです。
|
32
|
+
```
|
33
|
+
using System.Collections;
|
34
|
+
using System.Collections.Generic;
|
35
|
+
using System.IO;
|
36
|
+
using UnityEngine;
|
37
|
+
using UnityEngine.Networking;
|
38
|
+
using System.Text;
|
39
|
+
using MiniJSON;
|
40
|
+
```
|
30
41
|
|
42
|
+
|
1
希望する出力内容を記述した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
int a = response["RETURN"][1];
|
21
21
|
Debug.Log(a);
|
22
22
|
```
|
23
|
-
する
|
23
|
+
希望する出力は2ですが、以下のようなエラーが出ました。
|
24
24
|
```
|
25
25
|
error CS0021: Cannot apply indexing with [] to an expression of type 'object'
|
26
26
|
```
|