0

I have to convert a very long xml file to a json.

I tried the following libraries, but none of them seems to work.

 - org.json:json:20180813 
 - com.github.javadev:underscore:1.38

Type file xml: here

Paul
  • 3,644
  • 9
  • 47
  • 113

1 Answers1

1

why don't you use online XML to JSON Converter? It is working for your xml file

Brokkoli 71
  • 141
  • 9
  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java. – Paul Nov 11 '18 at 20:26
  • have you tried the suggestions of https://stackoverflow.com/questions/1823264/quickest-way-to-convert-xml-to-json-in-java – Brokkoli 71 Nov 11 '18 at 20:28
  • As I said I already tried the following solution: https://stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library. – Paul Nov 11 '18 at 20:43