i am trying to parse complex JSON available in RestAPI in spark using scala, but it is throwing error as
Expected collection but got JObject(List((success,JBool(true)), (message,JString()),
Is there any way to insert JSON data to spark DataFrame without knowing JSON structure.
directly from Restapi I am using Spark with Scala , and it is Maven Project.
May someone please help me how to query RestAPI data in JSON file and insert data to Dataframe.