Skip to content

Instantly share code, notes, and snippets.

@gotoark
Created February 2, 2018 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotoark/0dea9f8dc0d1f409c98a89ddd833a6e8 to your computer and use it in GitHub Desktop.
Save gotoark/0dea9f8dc0d1f409c98a89ddd833a6e8 to your computer and use it in GitHub Desktop.
JSON String To ArrayList Converter
ObjectMapper mapper = new ObjectMapper();
List<MaterialRequestSubFO> materialLst = mapper
.readValue(data, TypeFactory.defaultInstance()
.constructCollectionType(List.class, MaterialRequestSubFO.class));
System.out.println("Lst Size---->"+materialLst.size());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment