Skip to content
Advertisement

Collect all elements in a JSON file into a single list

I am using Gson 2.8.1+ (I can upgrade if needed).

If I have the JsonObject:

JavaScript

… how can I convert this efficiently to the form:

JavaScript

Advertisement

Answer

Simple example:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement