isEncodedJSONString function

bool isEncodedJSONString(
  1. String? s
)

Returns true if s is a encoded JSON String.

Implementation

bool isEncodedJSONString(String? s) {
  if (s == null) return false;
  s = s.trim();
  return _isEncodedJSONString(s);
}