isEncodedJSONPrimitive function
Returns true
if s
is a encoded JSON String of a primitive value.
Implementation
bool isEncodedJSONPrimitive(String? s) {
if (s == null) return false;
s = s.trim();
if (s.isEmpty) return false;
return _isEncodedJSONPrimitive(s);
}