Show object metadata correctly

Object metdata is currently viewed in the phpconsole app as a stdClass
object due the json_encode. This fix will send the complete metadata
over