Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java loop throug gson JsonElement

final JsonObject jsonObject = GSON.toJsonTree(<Object>).getAsJsonObject();
for(Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) {
    System.out.println("Key = " + entry.getKey() + " Value = " + entry.getValue() );
}
 
PREVIOUS NEXT
Tagged: #Java #loop #throug #gson #JsonElement
ADD COMMENT
Topic
Name
9+9 =