public String toJson(){
  try {
    return JsonSerializer.toString(this);
  }
 catch (  IOException e) {
    throw new IndexException(e,"Unformateable JSON schema: {}",e.getMessage());
  }
}

public String toJson ( ) { try { return JsonSerializer . toString ( this ) ; } catch ( IOException e ) { throw new IndexException ( e , "Unformateable JSON schema: {}" , e . getMessage ( ) ) ; } }
returns the json representation of this builder .
