Hello all, so I am trying to get some data from wikipedia using a www call to their api. I am running into trouble when i get the returned json data. I have no clue how to handle it. So here is what I currently have
IEnumerator RequestURL(string url){
WWW www = new WWW(url);
float elapsedTime = 0.0f;
while (!www.isDone) {
elapsedTime += Time.deltaTime;
if (elapsedTime >= 10.0f) break;
yield return null;
}
if (!www.isDone || !string.IsNullOrEmpty(www.error)) {
print("Error: " + www.error);
yield break;
}
jsonResponse = www.text;
print(jsonResponse);
Dictionary<string,object> search = Json.Deserialize(jsonResponse) as Dictionary<string,object>;
}
so how would I then reference my data when it is formatted like this:
[“Search value”,[“search value received”, “search value received 2” ]]
from my understanding of json the search value isn’t paired with the values received. The values received are a keyless array? I am so confused and could use a little help?