diff --git a/src/DataFormatter/JSONDataFormatter.php b/src/DataFormatter/JSONDataFormatter.php index 299daa7..b877832 100644 --- a/src/DataFormatter/JSONDataFormatter.php +++ b/src/DataFormatter/JSONDataFormatter.php @@ -89,7 +89,7 @@ class JSONDataFormatter extends DataFormatter continue; } - $fieldValue = $obj->obj($fieldName)->forTemplate(); + $fieldValue = $obj->obj($fieldName)->RAW(); $mappedFieldName = $this->getFieldAlias($className, $fieldName); $serobj->$mappedFieldName = $fieldValue; }