0

using jackson2, java have a json as follows and need help how to parse the value which is in a xml like structure with tags attributes and value. jsonml does not seem to ending tags and so forth but this does.

{
    "id": "1",
    "label": "complexvalue",
    "value": "[example uid=\"147366048682873771\" description=\"Example description\"]examplevalue[/example]"
  }

I can parse it as string by removing special chars and then splitting them but want to find a better way using jackson2. Any help is greatly appreciated.

epascarello
  • 204,599
  • 20
  • 195
  • 236
Jay
  • 1
  • 1

1 Answers1

0

I did not want to elaborate since, this question or similar question has been answered in the following link: JSON to XML 01, JSON TO XML 02

Community
  • 1
  • 1
itsmrbeltre
  • 412
  • 7
  • 18