Converting xml to json using jackson

前端 未结 3 788
执念已碎
执念已碎 2021-01-07 04:25

I want to convert an xml to json.

The format of of xml is as follows -

  
                            
        

        
3条回答
  •  不要未来只要你来
    2021-01-07 04:48

    While working on a group project I ran into the same issue you have described. The solution we used to get this to work was to change our Maven dependency from Jackson to json-lib. We used this site as a guide: http://answers.oreilly.com/topic/278-how-to-convert-xml-to-json-in-java/

    
        net.sf.json-lib
        json-lib
        2.4
        jar
        jdk15
        compile
    
    

    --$pli7

提交回复
热议问题