From: Vincent Vanwaelscappel Date: Wed, 24 Aug 2022 16:29:06 +0000 (+0200) Subject: wip #5399 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=01637bb04eb4859eee36772133bcb241d1fb4969;p=cubist_util.git wip #5399 --- 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()); + } }