isJson static method
Implementation
static bool isJson(source) {
var isJson = false;
try {
jsonDecode(source);
// JSON.stringify(JSON.parse(res.data),null,2);
isJson = true;
} catch (e) {}
return isJson;
}
static bool isJson(source) {
var isJson = false;
try {
jsonDecode(source);
// JSON.stringify(JSON.parse(res.data),null,2);
isJson = true;
} catch (e) {}
return isJson;
}