<div class="form-group regex">
    <span class="hintbox-label" ng-click="showJsonHint = !showJsonHint">
      <label for="visEditorRawJson{{agg.id}}">JSON Input</label>
      <i class="fa fa-info-circle"></i>
    </span>
    <div class="hintbox" ng-show="showJsonHint">
      <p>
        Any JSON formatted properties you add here will be merged with the elasticsearch aggregation definition for this section. For example <i>shard_size</i> on a <i>terms</i> aggregation
      </p>
    </div>
  <p>
    <textarea
      type="text"
      aria-labelledby="visEditorRawJson{{agg.id}}"
      class="form-control"
      ng-model="agg.params.json"
      validate-json
      ></textarea>
  </p>
</div>
