From 15aa0922f0418d0882d9799015700b577f34b264 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Tue, 17 Apr 2018 11:56:21 +1200 Subject: [PATCH] FIX: fix JSONDataFormatter to not convert values to XML --- src/DataFormatter/JSONDataFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataFormatter/JSONDataFormatter.php b/src/DataFormatter/JSONDataFormatter.php index 725ca40..c823f79 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; }