Closed GoogleCodeExporter closed 9 years ago
By design: unlike GSON, you need to explicitly specify the @Key annotation on
every field that you want to parse. For example:
public class DropboxAccountInfo {
@Key private String uid;
@Key private String display_name;
@Key private String country;
@Key private String referral_link;
@Key private DropboxQuota quota_info;
//Getters and setters not who do not necessary match with the variables names
private class DropboxQuota {
@Key private long quota;
@Key private long normal;
@Key private long shared;
//Getters and setters not who do not necessary match with the variables names
}
Original comment by yan...@google.com
on 24 Jan 2013 at 2:38
Original issue reported on code.google.com by
lcc.ju...@gmail.com
on 7 Jan 2013 at 5:21