From 01637bb04eb4859eee36772133bcb241d1fb4969 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 24 Aug 2022 18:29:06 +0200 Subject: [PATCH] wip #5399 --- src/Data.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Data.php b/src/Data.php index c481df2..2da2496 100644 --- a/src/Data.php +++ b/src/Data.php @@ -230,4 +230,11 @@ class Data implements \ArrayAccess { return null === $this->_offsetPrefix ? $offset : $this->_offsetPrefix . $offset; } + + /** + * @return false|string + */ + public function asJSON(){ + return json_encode($this->getRawData()); + } } -- 2.39.5