Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Feed {
- Long id;
- String title;
- String text;
- Short type;
- Object object;
- }
- Feed feed = mapper.readValue(response.getHits().getHits()[0].getSourceAsString(), Feed.class);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement