nl_tokens: Normalises a json string to a valid deserialisable json string
pl_tokens: function ( val ) { var trimmed = val . trim ( ) ; if ( trimmed . indexOf ( "'" ) === 0 && trimmed . lastIndexOf ( "'" ) === ( trimmed . length - 1 ) ) return '"' + trimmed . substring ( 1 , trimmed . <mask> - 1 ) + '"' ; return val ; }