I have created a dataframe like below, where I have used to_json() method to create JSON array value.
+-------------------------------------------------------