Java, Parse JSON Objects that I know are null
I think you'll need to format the JSON differently;
for an array of promotions
{promotions:[{promotion:null}, {promotion:5000}]}
for a single promotion
{promotion:null}
edit: depending on which json api you're using, there might be a null check. Google's gson library has an .isJsonNull()
method