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
  • 80,077
  • 70
  • 264
  • 372
V Joe
  • 271
  • 1
  • 5
  • 23