Added loop to add all fields in spec to op object so that custom fields defined in spec make it to the JSON output.