Convert Spark Dataframe To Nested Json