isJson method

bool isJson()

Implementation

bool isJson() {
  try {
    json.decode(this.validate());
  } catch (e) {
    return false;
  }
  return true;
}