# How to get a list of an object's properties/variables

**URL:** <https://forum.kirupa.com/t/how-to-get-a-list-of-an-objects-properties-variables/309203>\
**Category:** flash\
**Created:** [May 9, 2010, 6:39pm UTC](https://forum.kirupa.com/t/how-to-get-a-list-of-an-objects-properties-variables/309203 "2010-05-09T18:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moonglare](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@moonglare](https://forum.kirupa.com/u/moonglare)\
**Post date:** [May 9, 2010, 6:39pm UTC](https://forum.kirupa.com/t/how-to-get-a-list-of-an-objects-properties-variables/309203/1 "2010-05-09T18:39:53Z")

</div>

Hello,

I am creating a Facebook application using Flash, javascript and the [Graph API](http://developers.facebook.com/docs/api). I receive Facebook objects as JSON objects, and pass them into Flash via ExternalInterface

I know that, for example, if I access  
[https://graph.facebook.com/cocacola](http://graph.facebook.com/cocacola?access_token=2227470867%7C2.qlK __yOIz1xtjfTGXbOdgw__.3600.1273435200-560663869%7CAlrSDcGUMBGZCI4atFPMe9BC59c.)

I receive this object:

```auto

{
   "id": "40796308305",
   "name": "Coca-Cola",
   "picture": "http://profile.ak.fbcdn.net/object3/1853/100/s40796308305_2334.jpg",
   "link": "http://www.facebook.com/coca-cola",
   "category": "Consumer_products",
   "username": "coca-cola",
   "products": "Coca-Cola is the most popular and biggest-selling soft drink in history, as well as the best-known product in the world.

Created in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage by mixing Coca-Cola syrup with carbonated water. Coca-Cola was introduced in 1886, patented in 1887, registered as a trademark in 1893 and by 1895 it was being sold in every state and territory in the United States. In 1899, The Coca-Cola Company began franchised bottling operations in the United States.

Coca-Cola might owe its origins to the United States, but its popularity has made it truly universal. Today, you can find Coca-Cola in virtually every part of the world.",
   "fan_count": 5453427
}

```

How can I list the names of properties of the objects?  
In the example above, what I’m trying to get is an Array like this one:

```auto

Array("id","name","picture","link","category","username","products","fan_count")
)

```

I need the name of the properties, not their values.  
Any help?
