lib/lib.js
function _checkResult(type, err, obj, options)
{
    if (options) {
        if (options.logger) logger.logger(options.logger, 'parse:', type, options, lib.traceError(err), obj);
        if (options.datatype == "object" || options.datatype == "obj") return {};
        if (options.datatype == "list") return [];
        if (options.datatype == "str") return "";
    }
    return null;
}
function _checkResult(type, err, obj, options)
{
    if (options) {
        if (options.logger) logger.logger(options.logger, 'parse:', type, options, lib.traceError(err), obj);
        if (options.datatype == "object" || options.datatype == "obj") return {};
        if (options.datatype == "list") return [];
        if (options.datatype == "str") return "";
    }
    return null;
}
function _checkResult ( type , err , obj , options ) { if ( options ) { if ( options . logger ) logger . logger ( options . logger , 'parse:' , type , options , lib . traceError ( err ) , obj ) ; if ( options . datatype == "object" || options . datatype == "obj" ) return { } ; if ( options . datatype == "list" ) return [ ] ; if ( options . datatype == "str" ) return "" ; } return null ; }
Perform validation of the result type, make sure we return what is expected, this is a helper that is used by other conversion routines
Perform validation of the result type make sure we return what is expected this is a helper that is used by other conversion routines