Coding Fun Java Create JSON with Java, Part 2: Json, JsonObject, JsonArray

Create JSON with Java, Part 2: Json, JsonObject, JsonArray





In part 2 of the series, we invoke an existing business logic layer to get a List of Plant objects. We iterate over the plant objects and create a JsonArray, full of JsonObjects. We write those JsonObjects to a servlet, using a PrintWriter, and verify the results.

Part 1, where we create the servlet, is available here:

This video is part of a playlist on Full Stack Enterprise Web Development. To watch the previous videos, see the list here:…

Tags: , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *