Returns true if value is JSON-safe.
true
value
static bool isJsonSafe(Object? value) { try { validate(value); return true; } on FormatException { return false; } }