Two posts, fetched and merged

This servlet fetches two sample posts from the public JSONPlaceholder API, parses their JSON, and shows them below. The placeholder text is theirs — what this example demonstrates is a servlet reaching out to the network and composing the results.

#1 — sunt aut facere repellat provident occaecati excepturi optio reprehenderit

quia et suscipit suscipit recusandae consequuntur expedita et cum reprehenderit molestiae ut ut quas totam nostrum rerum est autem sunt rem eveniet architecto

#2 — qui est esse

est rerum tempore vitae sequi sint nihil reprehenderit dolor beatae ea dolores neque fugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis qui aperiam non debitis possimus qui neque nisi nulla

⬅️ Back to the examples.