Skip to content

Commit da2ec63

Browse files
committed
Update JsonConverter.php
1 parent e0bf363 commit da2ec63

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

WebFiori/Json/JsonConverter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static function propertyToJsonXString(Property $prop, $withName = true) {
101101

102102
self::push($prop->getJsonXTagName());
103103
$retVal .= self::checkJsonXType($prop->getType(), $prop->getValue(), $prop);
104-
$retVal .= self::pop().self::$CRLF;
104+
$retVal .= self::pop();
105105

106106
return $retVal;
107107
}
@@ -164,7 +164,7 @@ public static function toJsonXString(Json $json) {
164164
foreach ($json->getProperties() as $prop) {
165165
$retVal .= self::propertyToJsonXString($prop);
166166
}
167-
$retVal .= self::pop();
167+
$retVal .= self::pop().self::$CRLF;
168168

169169
return $retVal;
170170
}
@@ -382,7 +382,6 @@ private static function objToJsonX(Property $prop, mixed $val) {
382382
}
383383
private static function pop() {
384384
self::updateTab(false);
385-
386385
return array_pop(self::$XmlClosingPool);
387386
}
388387
private static function push($tagName) {

0 commit comments

Comments
 (0)