No major changes
https://github.com/google/gson/blob/master/CHANGELOG.md
exclude 'junit:junit'
}
dependency 'com.google.code.findbugs:jsr305:3.0.2'
- dependency 'com.google.code.gson:gson:2.8.5'
+ dependency 'com.google.code.gson:gson:2.8.6'
dependency('com.google.guava:guava:28.2-jre') {
exclude 'com.google.errorprone:error_prone_annotations'
exclude 'com.google.guava:listenablefuture'
Date now = new Date();
JsonParser jsonParser = new JsonParser();
- JsonElement jsonTree = jsonParser.parse(IOUtils.toString(getClass().getResource("tree-example.json"), UTF_8));
+ JsonElement jsonTree = jsonParser.parseString(IOUtils.toString(getClass().getResource("tree-example.json"), UTF_8));
JsonArray components = jsonTree.getAsJsonObject().getAsJsonArray("components");
for (int i = 0; i < components.size(); i++) {
JsonElement componentAsJsonElement = components.get(i);