Checks if a value is a JSON object
bool isJsonObject(Object? value) { return value != null && value is Map<String, Object?>; }