nl_tokens: Inspired by jQuery . See https : // github . com / jquery / jquery / blob / master / src / data . js
pl_tokens: function getValue ( value ) { var data = value , result = value ; if ( typeof data === 'string' ) { <mask> { if ( ! data || data === 'true' ) { result = true ; } else if ( data === 'false' ) { result = false ; } else if ( data === 'null' ) { result = null ; } else if ( + data + '' === data ) { result = + data ; } else { result = rbrace . test ( data ) ? JSON . parse ( data ) : data ; } } catch ( error ) { } } return result ; }