提琴手的Jscript JSON.JsonDecode
问题描述:
这是我有:提琴手的Jscript JSON.JsonDecode
public static var users=Fiddler.WebFormats.JSON.JsonDecode('[{key:"20048039", value:"Some Name"}, {key:"204130"...);
这就是我想要的:
users.JSONObject[0].key
或users.JSONObject[0].value
这是我使用的调查:
FiddlerApplication.Log.LogFormat('output: {0}', users.JSONObject[0]);
输出:System.Collections.Hashtable
我知道C#,但在FiddlerScript我需要一些帮助来读取里面users
这些值。
我该在这里做什么?
谢谢。
答
好吧,我找到了解决办法由自己(ArrayList中,哈希表):
users.JSONObject[0]["key"])