public static bool IsJSON(this string payload) { try { JsonConvert.DeserializeObject(payload); return true; } catch { return false; } }