This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iPhone 15 Customize the Action button | |
iPhone 15 Switch default camera lenses | |
iPhone 15 Limit your battery to 80% | |
iPhone 15 The addition of video log files | |
iPhone 15 Reverse charging for smaller devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JavaScriptSerializer js = new JavaScriptSerializer(); | |
try | |
{ | |
string strData = "JSON data"; | |
Dictionary<string, object> dic = js.Deserialize<Dictionary<string, object>>(strData); | |
} | |
catch (ArgumentException argE) | |
{ | |
MessageBox.Show("JSON data is not valid", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); | |
} |