public function formatReadonly($value, $entry = null) { $value = $this->prepare($value); if (isset($value)) { // TODO this checking should available on JsonKit // if (substr(phpversion(), 0, 3) === '5.3') { // $value = json_encode($value->toArray(), JSON_PRETTY_PRINT); // } else { $value = json_encode($value->toObject()); // } } return parent::formatReadonly($value, $entry); }