code: function isJson(str) {
          try {
              var obj = JSON.parse(str);
              return this.isObject(obj);
          } catch (e) {/* ignore */}
  
          return false;
      }
docs: Check if a string is a valid JSON.
  
  @category Validate
  @param {string} str - The string to check
  @return {boolean}