check if string input is json (stringyfied)
input
bool isJSON(String input) { try { jsonDecode(input); } catch (e) { return false; } return true; }