As a workaround (not very elegant, though) I think you could wrap the
"Photo" class in another object with a "photo" attribute:
public class PhotoWrapper {
private Photo photo;
(setters/getters...)
}
public class Photo {
(the same as your example)
}
Then you should deserialize into objects of class "PhotoWrapper", and
you can access the inner "photo" attribute via a getter.
Hope this works...