lib/jsdoc/transform-apijson-for-sdk.js
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');
	}
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');
	}
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