aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 814c564a3..979fd897a 100755
--- a/include/text.php
+++ b/include/text.php
@@ -1717,3 +1717,11 @@ function jindent($json) {
}
+function json_decode_plus($s) {
+
+ $x = json_decode($s,true);
+ if(! $x)
+ $x = json_decode(str_replace(array('\\"','\\\\'),array('"','\\'),$s),true);
+ return $x;
+
+} \ No newline at end of file