3

I am trying to convert a Java object having values in one variable as a string of xml .

Eg: <soapenvelope... >

After using

String json = new Gson().toJson(testVO)

It replaces "<" with \u003c. I want to avoid this as I will then display the data in jquery datatables which fails to recognize the string of xml and print some random values.

Jonik
  • 77,494
  • 68
  • 254
  • 365
V Joe
  • 261
  • 5
  • 23