depth = $o->depth; if ($o->access_path) { $base_obj->access_path = 'json_decode('.$o->access_path.', true)'; } $r = new Representation('Json'); $r->contents = $this->parser->parse($json, $base_obj); if (!\in_array('depth_limit', $r->contents->hints, true)) { $r->contents = $r->contents->value->contents; } $o->addRepresentation($r, 0); } }