function createApiRefApiJson(oChainObject) {
		if (returnOutputFiles) {
			// If requested, return data instead of writing to FS (required by UI5 Tooling/UI5 Builder)
			return JSON.stringify(oChainObject.parsedData);
		}
		let sOutputDir = path.dirname(oChainObject.outputFile);

		// Create dir if it does not exist
		if (!fs.existsSync(sOutputDir)) {
			fs.mkdirSync(sOutputDir);
		}

		// Write result to file
		fs.writeFileSync(oChainObject.outputFile, JSON.stringify(oChainObject.parsedData) /* Transform back to string */, 'utf8');
	}
/**
	 * Create api.json from parsed data
	 * @param oChainObject chain object
	 */
Create api.json from parsed data
@param oChainObject chain object
Create api . json from parsed data @param oChainObject chain object
function createApiRefApiJson(oChainObject) {
		if (returnOutputFiles) {
			return JSON.stringify(oChainObject.parsedData);
		}
		let sOutputDir = path.dirname(oChainObject.outputFile);
		if (!fs.existsSync(sOutputDir)) {
			fs.mkdirSync(sOutputDir);
		}
		fs.writeFileSync(oChainObject.outputFile, JSON.stringify(oChainObject.parsedData) , 'utf8');
	}
function createApiRefApiJson ( oChainObject ) { if ( returnOutputFiles ) { return JSON . stringify ( oChainObject . parsedData ) ; } let sOutputDir = path . dirname ( oChainObject . outputFile ) ; if ( ! fs . existsSync ( sOutputDir ) ) { fs . mkdirSync ( sOutputDir ) ; } fs . writeFileSync ( oChainObject . outputFile , JSON . stringify ( oChainObject . parsedData ) , 'utf8' ) ; }
Create api.json from parsed data
 @param oChainObject chain object
Create api . json from parsed data @param oChainObject chain object
// If requested, return data instead of writing to FS (required by UI5 Tooling/UI5 Builder) // Create dir if it does not exist // Write result to file /* Transform back to string */