Open Wonko52 opened 2 years ago
I get the same exception: #25
maybe just my 2cent but your return should be an array itself like
$data = [
[
'id' => '0',
'text' => 'Node 0',
'children' => [
[
'id' => 1,
'text' => 'Node 0-1'
],
[
'id' => 2,
'text' => 'Node 0-2'
],
]
]
];
that will result in this json
[
{
"id": "0",
"text": "Node 0",
"children": [
{
"id": 1,
"text": "Node 0-1"
},
{
"id": 2,
"text": "Node 0-2"
}
]
}
]
I got a JS-Error when I try to get data via Url:
This is the code:
But this works:
This is the response of the URL
It's generate by PHP: