Returning json now from the /tree_view endpoint