Skip to content

Commit 38523c4

Browse files
authored
Merge pull request #45 from WebFiori/dev
fix: Change of Properties Style on Parsing
2 parents cac6ee9 + 4bdccc3 commit 38523c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webfiori/json/Json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public static function decode($jsonStr) {
446446
$decodedStd = json_decode($jsonStr);
447447

448448
if (gettype($decodedStd) == 'object') {
449-
$jsonXObj = new Json();
449+
$jsonXObj = new Json([], 'none', 'same');
450450
$objProps = get_object_vars($decodedStd);
451451

452452
foreach ($objProps as $key => $val) {
@@ -813,7 +813,7 @@ private static function fixParsed($jsonx, $xKey, $xVal) {
813813
$jsonx->add($xKey, $arr[0]);
814814
} else if (gettype($xVal) == 'object') {
815815
//An object
816-
$xJson = new Json();
816+
$xJson = new Json([], 'none', 'same');
817817
$xProps = get_object_vars($xVal);
818818

819819
foreach ($xProps as $prop => $val) {

0 commit comments

Comments
 (0)