📜  Java 循环通过 gson JsonElement - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:16.438000             🧑  作者: Mango

代码示例1
final JsonObject jsonObject = GSON.toJsonTree().getAsJsonObject();
for(Map.Entry entry : jsonObject.entrySet()) {
    System.out.println("Key = " + entry.getKey() + " Value = " + entry.getValue() );
}