]> _ Git - cubist_util.git/commitdiff
wip #5399
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 Aug 2022 16:29:06 +0000 (18:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 Aug 2022 16:29:06 +0000 (18:29 +0200)
src/Data.php

index c481df209ffe87b6d0bd52ddbd9ec395f6a26859..2da2496b772a12ed1315ad079f633876cc6a5d2e 100644 (file)
@@ -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());
+    }
 }