android - Working with JSON Arrays -
http://pastie.org/8269975 . if @ code, don't know how access individual fields account_id, hero_id, , etc. have code.
jsonobject match = getmatchdetails("281699681");
if want access individual fields account_id, code not working.
int = match.result.players[0].account_id;
please me , if want @ json script, here's link https://api.steampowered.com/idota2match_570/getmatchdetails/v001/?match_id=281699681&key=8f48de9ebf9c9ea121a6a9ef2e30b7c7
json uses javascript objects, not java objects , hence cannot directly access members if java objects. need gson convert between json representation , java object representation.
Comments
Post a Comment