json as a tree