code: function tryToParseJSON( json ) {
    if ( !isString( json ) ) return null;
    try {
      return JSON.parse( json );
    } catch ( e ) {
      return e;
    }
  }
docs: Attempt to parse JSON If the parse fails, return the error object If JSON is falsey, return null (this is so that it will be ignored if not specified)