mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Use native json_encode to convert treeView objects to JSON.
This should improve the performance.
This commit is contained in:
parent
fbcfc1f2a8
commit
811dca691b
4 changed files with 60 additions and 11 deletions
|
@ -106,7 +106,7 @@ class AppExtension extends AbstractExtension
|
|||
{
|
||||
$tree = $this->treeBuilder->getTreeView(\get_class($element), null, $type, $element);
|
||||
|
||||
return $this->serializer->serialize($tree, 'json', ['skip_null_values' => true]);
|
||||
return json_encode($tree);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue