Skip to content

Commit

Permalink
Fix #5021
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed Oct 11, 2020
1 parent e59c7ce commit e69447b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Show/Field.php
Expand Up @@ -400,7 +400,12 @@ public function json()
$field = $this;

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

if (is_string($value)) {
$content = json_decode($value, true);
} else {
$content = $value;
}

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

0 comments on commit e69447b

Please sign in to comment.