Like, if you try to decode a json to a struct, and a json field refers to an int/float struct field. Okay, now if that json field is empty, will throw an error and not throw a 0 the field. I want this because, empty strings in json mean nonexistent, right? And a number to be nonexistent is usually put as a 0, so to make that struct field to be nonexistent should be put 0 or something like that. I don't know if is the best solution, but wouldn't be bad though.

Comment From: seankhliao

no, that's invalid json data. null, or no field set is the json representation of nonexistent