Add ?jsonForceObject flag to enable JSON_FORCE_OBJECT

This commit is contained in:
DL6ER
2016-11-24 16:48:11 +01:00
parent 8f2a028f5b
commit 22c32b269e
+9 -1
View File
@@ -77,5 +77,13 @@
}
$data = filterArray($data);
echo json_encode($data);
if(isset($_GET["jsonForceObject"]))
{
echo json_encode($data, JSON_FORCE_OBJECT);
}
else
{
echo json_encode($data);
}
?>