function(resultAry, isRoot) {
			if(resultAry.length == 0) {
				if(isRoot)
					return {
						done : 'true',
						queryLocator : null,
						size : 0,
					};
				return null;
			}
			var records = null;
			if(resultAry.length == 1)
				records = resultAry[0];
			else
				records = resultAry;
			return {
				done : 'true',
				queryLocator : null,
				records : records,
				size : resultAry.length,
			};
		}
function(resultAry, isRoot) {
			if(resultAry.length == 0) {
				if(isRoot)
					return {
						done : 'true',
						queryLocator : null,
						size : 0,
					};
				return null;
			}
			var records = null;
			if(resultAry.length == 1)
				records = resultAry[0];
			else
				records = resultAry;
			return {
				done : 'true',
				queryLocator : null,
				records : records,
				size : resultAry.length,
			};
		}
function ( resultAry , isRoot ) { if ( resultAry . length == 0 ) { if ( isRoot ) return { done : 'true' , queryLocator : null , size : 0 , } ; return null ; } var records = null ; if ( resultAry . length == 1 ) records = resultAry [ 0 ] ; else records = resultAry ; return { done : 'true' , queryLocator : null , records : records , size : resultAry . length , } ; }
Creates a wrapped result in the form that you would expect the salesforce soap api to return a result
Creates a wrapped result in the form that you would expect the salesforce soap api to return a result