diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-23 02:52:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 02:52:37 +0300 |
commit | 00b81566e5f20f9bef4fd80df2d70a9e6c831d47 (patch) | |
tree | 36a2e8903f88a7d742cf0f78d56e330c1ecf295a /plugins | |
parent | 7a95eba80b3ca915b5d41b3716c35e085a9c3ba2 (diff) |
Serialize scalars and objects in original format. (#13986)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/API/Renderer/Original.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/API/Renderer/Original.php b/plugins/API/Renderer/Original.php index 815d475d71..2db1ae2e71 100644 --- a/plugins/API/Renderer/Original.php +++ b/plugins/API/Renderer/Original.php @@ -50,12 +50,12 @@ class Original extends ApiRenderer public function renderScalar($scalar) { - return $scalar; + return $this->serializeIfNeeded($scalar); } public function renderObject($object) { - return $object; + return $this->serializeIfNeeded($object); } public function renderResource($resource) |