1

I have a object/string in the format {"String one", "String two" } How can i cast this to java Collection.

Tried this but did not work -

om.readValue(str, new TypeReference<ArrayList<String>>(){});

Note: the String does not have [] (brackets) at the start and the end to be treated as array.

Pradeep
  • 850
  • 2
  • 14
  • 27

0 Answers0