I have a JSON encoded object, and it's set up with integer keys for some of the internal objects.
$obj = '{"dimensions":{"5":{"name":"Quality"}}, "name":"Service"}';
Typically, doing a json_decode($obj) would allow you to obtain the various objects in PHP using standard object traversing...