public function json()
    {
        $field = $this;

        return $this->unescape()->as(function ($value) use ($field) {
            $content = json_decode($value, true);

            if (json_last_error() == 0) {
                $field->border = false;

                return '<pre><code>'.json_encode($content, JSON_PRETTY_PRINT).'</code></pre>';
            }

            return $value;
        });
    }
public function json()
    {
        $field = $this;

        return $this->unescape()->as(function ($value) use ($field) {
            $content = json_decode($value, true);

            if (json_last_error() == 0) {
                $field->border = false;

                return '<pre><code>'.json_encode($content, JSON_PRETTY_PRINT).'</code></pre>';
            }

            return $value;
        });
    }
public function json ( ) { $ field = $ this ; return $ this -> unescape ( ) -> as ( function ( $ value ) use ( $ field ) { $ content = json_decode ( $ value , true ) ; if ( json_last_error ( ) == 0 ) { $ field -> border = false ; return '<pre><code>' . json_encode ( $ content , JSON_PRETTY_PRINT ) . '</code></pre>' ; } return $ value ; } ) ; }
Show field as json code.

@return Field
Show field as json code .