Code example for JsonArray

Methods: iterator

0
            message.notifyListeners();
        } 
    } 
 
    static void saveExtraConversations(JsonArray conversationArray) {
        Iterator<JsonElement> iterator = conversationArray.iterator();
        while (iterator.hasNext()) {
            JsonObject conversationJson = iterator.next().getAsJsonObject();
            String conversationId = conversationJson.get("id").getAsString();
            Conversation conversation = ContentHandler.getInstance()
                    .getConversation(conversationId, null);
            ConversationParser.parseToConversation(conversationJson,
                    conversation);
            conversation.notifyListeners();
        } 
    } 
 
    static void saveExtraNotifications(JsonArray notificationArray) {
        Iterator<JsonElement> iterator = notificationArray.iterator();
        while (iterator.hasNext()) {
Experience pair programming with AI  Get Codota for Java