In Gson, how do I add a JsonArray to a JsonObject?
问题 Suppose that I am trying to get a Json structure like this: { "rows": [ { "date_str": "2016-07-01", "sleep_7_or_more_hours": true, "activity_minutes": "0", "water_5_or_more_cups": true, "fruit_veg_4_or_more_servings": true, "physical_activity_description": "walking" } { "date_str": "2016-07-02", "sleep_7_or_more_hours": true, "activity_minutes": "30", "water_5_or_more_cups": true, "fruit_veg_4_or_more_servings": true, "physical_activity_description": "walking" } ...etc ] } Some questions