I am struggling to figure out how to generate nested json for a hierarchical menu using PySpark.
I have an Athena table that stores parent-child relationships. The pa