code: public String toJson() {
          build();
          try {
              return JsonSerializer.toString(this);
          } catch (IOException e) {
              throw new IndexException(e, "Unformateable JSON search: {}", e.getMessage());
          }
      }
docs: Returns the JSON representation of this object.
  
  @return a JSON representation of this object