Serves json for tree index