public static int GetInt(this JsonData jsonData, string key, int defaultValue) { try { return (int)jsonData[key]; } catch { return defaultValue; } }