code: private void writeJobState(JsonWriter jsonWriter, JobState jobState) throws IOException {
      jobState.toJson(jsonWriter, this.keepConfig);
    }
docs: Write a single {@link JobState} to json document.
  
  @param jsonWriter {@link com.google.gson.stream.JsonWriter}
  @param jobState {@link JobState} to write to json document
  @throws IOException