Spark Flatten Json, The difference here is that the value of payload in my case is just string type.