Omit empty fields in JSON encoding