# How to trace an Object?

**URL:** https://forum.kirupa.com/t/how-to-trace-an-object/241873
**Category:** flash
**Created:** [October 19, 2007, 12:01am UTC](https://forum.kirupa.com/t/how-to-trace-an-object/241873 "2007-10-19T00:01:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bzouchir](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bzouchir/32/2088_2.png) [@bzouchir](https://forum.kirupa.com/u/bzouchir)
#### Post date: [October 19, 2007, 12:01am UTC](https://forum.kirupa.com/t/how-to-trace-an-object/241873/1 "2007-10-19T00:01:37Z")

</div>

Hi everyone,

I was wondering how i can trace the value of an object.  
The object is actually a server JSON response that looks something like this:

```auto

var obj:Object = {"called":"getTest","response":{"ok":{"tracks":[{"name":"Name 1","id":"1"},{"name":"Name 2","id":"2"}],"artist":"SomeArtist","date":"21-08-2007",}}}

```

now I can trace (obj.response.ok.artist); //Outputs: SomeArtists  
etc…

but how can i trace the whole reponse/obj?  
so i can get  
{“called”:“getTest”,“response”:{“ok”:{"…etcc

mind you  
trace(obj.toString()); //outputs [object object]

thanks

**SOLUTION** :  
Sorry my mistake, It was because i was tracing after the JSON is been decoded.  
I just traced it before decoding and it output JSON as received from the server.
