private static void writeConstituent(Constituent c, JsonObject cJ) {
    writeString("label", c.getLabel(), cJ);

    if (c.getConstituentScore() != 0) writeDouble("score", c.getConstituentScore(), cJ);
    writeInt("start", c.getStartSpan(), cJ);
    writeInt("end", c.getEndSpan(), cJ);

    writeAttributes(c, cJ);
    Map<String, Double> labelsToScores = c.getLabelsToScores();

    if (null != labelsToScores) writeLabelsToScores(labelsToScores, cJ);
  }