Improved tree structure in JSON export