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

convert xml to json using Scala ?

Explorer

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?

1 REPLY 1

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.