attributes['json_data'] = $value ? json_encode(json_decode($value, true)) : ''; } }