Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Json problem
Message
 
To
All
General information
Forum:
Android
Category:
Other
Title:
Json problem
Miscellaneous
Thread ID:
01629711
Message ID:
01629711
Views:
47
Hi all, I'm trying to deserialize a Json string into a custom class
public class Artist
{
    public Artist()
    {
        this.Albums = new ArrayList<Album>();
    }

    @SerializedName("artist")
    String Artist;

    @SerializedName("id")
    String ID;

    @Expose
    ArrayList<Album> Albums = null;
    

    @Expose
	String PlaceHolder = "";
    }
The problem I'm having is only the fields that are present in the Json string (id and artist ) are getting deserialized, what I want is for the other properties to be set to null which I will populate later. Any ideas ?
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform