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: camera phone, coding, Create, free, java, java vs php, JSON, jsonarray, jsonobject, Part, sharing, upload, Video, video phone