Skip to content

Commit

Permalink
fix: Change of Properties Style on Parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jan 28, 2025
1 parent 12e03bc commit 4bdccc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webfiori/json/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public static function decode($jsonStr) {
$decodedStd = json_decode($jsonStr);

if (gettype($decodedStd) == 'object') {
$jsonXObj = new Json();
$jsonXObj = new Json([], 'none', 'same');
$objProps = get_object_vars($decodedStd);

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

foreach ($xProps as $prop => $val) {
Expand Down

0 comments on commit 4bdccc3

Please sign in to comment.