An alternative to double casting stuff (once to array done by the Entity and once to json by json_encode) is to `return $this->extract($this->_properties)`. Entities implement JsonSerializable, so it will recurse just fine.