generate JSON data for hierarchy and dependencies visualizations