#95484Empty json responses cause JavaScript errors and error notifications in backend
Description
When no page is configured to be visible in the page tree, an error occurs because JsonResponse return empty string instead of [] for empty arrays.
Empty strings are invalid json, while [] would have been valid.
Screenshot:
pagetree-empty-error.png