code: function tryParseJson(text) {
          text = _.trim(text);
          if ((_.startsWith(text, "[") && _.endsWith(text, "]")) || (_.startsWith(text, "{") && _.endsWith(text, "}"))) {
              try {
                  return JSON.parse(text);
              }
              catch (e) {
                  // ignore
              }
          }
          return null;
      }
docs: If the string starts and ends with [] {} then try parse as JSON and return the parsed content or return null
  if it does not appear to be JSON
  @method tryParseJson
  @for Core
  @static
  @param {String} text
  @return {Object}