isJson property

bool get isJson

Implementation

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