I have got GSON as a JSON parser in Java, but the keys aren\'t always the same.
For example. I have the following JSON:
{ \"The Object I already
You can use JsonParser to convert your Json into an intermediate structure which allow you to examine the json content.
String yourJson = "{your json here}";
JsonElement element = JsonParser.parseString(yourJson);
JsonObject obj = element.getAsJsonObject(); //since you know it's a JsonObject
Set> entries = obj.entrySet();//will return members of your object
for (Map.Entry entry: entries) {
System.out.println(entry.getKey());
}