Add save to json/yaml (ctrl-w)

This commit is contained in:
2024-10-01 21:40:13 +02:00
parent 9bc83ccd56
commit 3caca13e5c
10 changed files with 101 additions and 8 deletions
+5
View File
@@ -27,5 +27,10 @@ class ArrayNode extends Node implements CollapsibleNode
return new ArrayNode($items);
}
public function jsonSerialize(): mixed
{
return array_values($this->items);
}
}