Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

convert xml to json using Scala ?


I am trying to save data to Elasticsearch using spark, I am working with xml files, as you know Elasticsearch accept only Json files, so I need to convert the xml file into Json file using Scala.

Could you help me?


Hi @Aymen Rahal ,

Found this blog online , is this the answer you are searching for : data conversion XML to json using scala

Please accept the answer if you find this is helpfull. which will help other community users to search this answer easily.