I (server java developer) and two my colleagues (ios and Android developers) have a problem (in fact a dispute).
Opinion of the mobile developers: i have to replace in JSON, which they retrieving from my server, all null fields(this field can be field for my custom object) to empty quotes(note, that Java is a language with a static types). Reason of this: they can't find solution, which allows deserialize my JSON (map to object), if it will be have null values.
My opinion: java serializers can't manipulate on value-level, only on type level. So, I can write serializer only for some class. And, I don't know why, but empty quotes instead of null seems to me very bad practice, which can create many problems in future.
null
values, so any JSON lib in any language should support them. – Briefsnull
token by""
. It should be very efficient. – Briefs