# AS3 parsing JSON

**URL:** https://forum.kirupa.com/t/as3-parsing-json/330361
**Category:** flash
**Created:** [January 8, 2013, 7:11pm UTC](https://forum.kirupa.com/t/as3-parsing-json/330361 "2013-01-08T19:11:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Antsuperhack](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)
#### Post date: [January 8, 2013, 7:11pm UTC](https://forum.kirupa.com/t/as3-parsing-json/330361/1 "2013-01-08T19:11:16Z")

</div>

Hey all,

I’m currently trying to use AS3 to check a JSON file found at : [http://furydivine.net/api/hunt-dice/active](http://furydivine.net/api/hunt-dice/active)

I want to check if players are online and if they are playing on xbox I want to use this to trigger an AS3 event …

So far I have this in an empty AS3 file …

```auto
import com.adobe.serialization.json.JSON;

var myRequest:URLRequest = new URLRequest("http://furydivine.net/api/hunt-dice/active/");
var myLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onload);
myLoader.load(myRequest);

function onload(evt:Event):void
{
var myData:Object = JSON.decode(myLoader.data);

trace(myData.player[0].playerName);
}

```
