test json to tree