Serialise null to null in JSON