isJSON function

bool isJSON(
  1. Object? value
)

Returns true if value is a JSON.

Implementation

bool isJSON(Object? value) {
  return isJSONPrimitive(value) || isJSONList(value) || isJSONMap(value);
}