0

I try convert this json in a java object with Gson. How can to convert the field "Content"? Sometimes is a string and others is a object with two fields.

"content": "TODO List",

or

"content": {
      "one": "one",
       "other": "other"
}
Naveen DA
  • 4,148
  • 4
  • 38
  • 57
eRuiz_M
  • 3
  • 3

1 Answers1

0

Answer to following question, might help to solves your problem.

How to handle different data types with same attribute name with Gson?

pavithraCS
  • 709
  • 6
  • 23