code: function createAPIJSON(symbols, filename) {
  
  	var api = {
  		"$schema-ref": "http://schemas.sap.com/sapui5/designtime/api.json/1.0"
  	};
  
  	if ( templateConf.version ) {
  		api.version = templateConf.version.replace(/-SNAPSHOT$/,"");
  	}
  	if ( templateConf.uilib ) {
  		api.library = templateConf.uilib;
  	}
  
  	api.symbols = [];
  	// sort only a copy(!) of the symbols, otherwise the SymbolSet lookup is broken
  	symbols.slice(0).sort(sortByAlias).forEach(function(symbol) {
  		if ( isFirstClassSymbol(symbol) && !symbol.synthetic ) { // dump a symbol if it as a class symbol and if it is not a synthetic symbol
  			api.symbols.push(createAPIJSON4Symbol(symbol, false));
  		}
  	});
  
  	postProcessAPIJSON(api);
  
  	fs.mkPath(path.dirname(filename));
  	fs.writeFileSync(filename, JSON.stringify(api), 'utf8');
  	info("  apiJson saved as " + filename);
  }
docs: ---- add on: API JSON -----------------------------------------------------------------