Save some bytes and write just the fieldName if only the name is set.

Before:
  fields : [ {
    name : "id"
  }, {
    name : "name"
  }]
  
After these changes:
  fields: [ "id", "name" ]