}
String jsonString = result.toString();
for (int i = 0; i < 10000; i++) {
JSON mediaContentJsonObject = JSON.parse(jsonString);
JSON.Object mediaJsonObject = (JSON.Object) mediaContentJsonObject.get("media");
Media media = readMedia(mediaJsonObject);
JSON.Array<Value> imageValues = (JSON.Array<Value>) mediaContentJsonObject.get("images");
List<Image> images = readImages(imageValues);
MediaContent mediaContent = new MediaContent();
mediaContent.media = media;
mediaContent.images = images;