> 
> **Possible Duplicate:**  
> 
> [How to list the properties of a javascript object](https://stackoverflow.com/questions/208016/how-to-list-the-properties-of-a-javascript-object) 
> 
> 
> 

I am making an application that receives a `JSON object` from some services. This object is parsed using `JSON.parse()` and a `JavaScript Object` is returned.

Is there any way possible that I can find out the different `variables` present inside the object?

Example:

```
var some_object
{
    var a: "first"
    var b: "second"
}

```

I need to figure out a way to get names of a and b from this object `some_object` 

Are there any predefined methods in JavaScript that do this?