json_encode "not working" properly?
Of course, the subject is sort of tricky... I assume json_encode php function works perfectly.

But there must be something wrong on what I am doing.

I have a variable in my PHP program that actually contains data. Sort of structured data, as it is an object variable with all its attributes set properly.

But, magically, when I apply json_encode to that variable, it just doesn't "fills" the json object.

See the case below:

1. As you can see... the variable $test contains data.

![enter image description here][1]


2. Now, putting the focus on the whole json_encoder($test) thing, it just doesn't fills the "test" {} part of the json object.
![enter image description here][2]

It's definitely me doing something wrong. But... what?

Thanks a lot in advance.

Pedro
  [1]: http://i.stack.imgur.com/39rYq.png
  [2]: http://i.stack.imgur.com/6Uumd.png
json_encode "not working" properly?
===

Of course, the subject is sort of tricky... I assume json_encode php function works perfectly.

But there must be something wrong on what I am doing.

I have a variable in my PHP program that actually contains data. Sort of structured data, as it is an object variable with all its attributes set properly.

But, magically, when I apply json_encode to that variable, it just doesn't "fills" the json object.

See the case below:

1. As you can see... the variable $test contains data.

![enter image description here][1]


2. Now, putting the focus on the whole json_encoder($test) thing, it just doesn't fills the "test" {} part of the json object.
![enter image description here][2]

It's definitely me doing something wrong. But... what?

Thanks a lot in advance.

Pedro
  [1]: http://i.stack.imgur.com/39rYq.png
  [2]: http://i.stack.imgur.com/6Uumd.png