Bugfix for serializing empty JSON fields.