Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String jsonData = xml;
- //create ObjectMapper instance
- ObjectMapper objectMapper = new ObjectMapper();
- objectMapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);
- //convert json string to object
- List<Items> items = objectMapper.readValue(jsonData, new TypeReference<List<Items>>(){});
Add Comment
Please, Sign In to add comment