ive tried to get some data from mashape and then called it onto raw_body:
$data = $response -> raw_body;
i get this result:
{ "internalName": "jokb93", "dataVersion": 0, "acctId": 22059705, "name": "jokb93", "profileIconId": 31, "revisionDate": "Sep 14, 2013 3:36:46 PM", "revisionId": 0, "summonerId": 19355532, "summonerLevel": 30 }
then i try parsing it into seperate arrays for php to handle:
var json = '<? echo $data ?>',
obj = JSON.parse(json);
alert(obj.internalName);
but it seems to end out blank?
thx for ur time hope u can figure this out :-D