Closed rameshT108 closed 6 years ago
why I'm getting Json expectation while parsing XML?
I have no idea because you did not include much anything relevant, especially code you are using, including class definition(s) relevant. If you can include relevant class definition (or part), it may be possible to determine. Even better would be simplified test case. Also, please include relevant Jackson version.
As to second question: while exception name has json
does not mean anything: Jackson started as json only library and because of this some naming still reflects json (changing class names is a highly breaking change). So think of it as legacy naming issue.
JSON parse error: Can not construct instance of com.inspirage.ilct.dto.xml.AddressLine: no String-argument constructor/factory method to deserialize from String value ('1') XMl given is `
`