lib/jsdoc/transform-apijson-for-sdk.js
function getAPIJSONPromise(oChainObject) {
		return new Promise(function(oResolve, oReject) {
			fs.readFile(sInputFile, 'utf8', (oError, sFileData) => {
				if (oError) {
					oReject(oError);
				} else {
					oChainObject.fileData = JSON.parse(sFileData);
					oResolve(oChainObject);
				}
			});
		});
	}
function getAPIJSONPromise(oChainObject) {
		return new Promise(function(oResolve, oReject) {
			fs.readFile(sInputFile, 'utf8', (oError, sFileData) => {
				if (oError) {
					oReject(oError);
				} else {
					oChainObject.fileData = JSON.parse(sFileData);
					oResolve(oChainObject);
				}
			});
		});
	}
function getAPIJSONPromise ( oChainObject ) { return new Promise ( function ( oResolve , oReject ) { fs . readFile ( sInputFile , 'utf8' , ( oError , sFileData ) => { if ( oError ) { oReject ( oError ) ; } else { oChainObject . fileData = JSON . parse ( sFileData ) ; oResolve ( oChainObject ) ; } } ) ; } ) ; }
Load api.json file
@param {object} oChainObject chain object
@returns {object} chain object
Load api . json file