If you want fetch the data inside an inner array of your document you need store it in a ArrayList
or List
of java, like this:
cursor = document.find(query);
if(cursor.hasNext()) {
ArrayList<?> Matchs = (BasicDBList) cursor.next().get("Matchs");
/* here you can iterate over Matchs arrayList and get his data */
for(int i=0; i< Matchs.size(); i++){
JsonParser jsonParser = new JsonParser();
JsonElement jsonElement = jsonParser.parse(String.valueOf(Matchs.get(i)));
if (jsonElement.isJsonObject()) {
JsonObject jsonObject = jsonElement.getAsJsonObject();
String date_m = jsonObject.get("date_m").getAsString();
String stade = jsonObject.get("stade").getAsString();
}
}
}
NOTE: You need add to you project a jar of google.gson, to deserialize more easily your bson object
https://code.google.com/p/google-gson/downloads/detail?name=google-gson-2.2.4-release.zip
I hope it helps.