public Dictionary<string,string> getValue(string someJson )
{
Dictionary<string, string> ValueList = new Dictionary<string, string>();
string[] multiArray = someJson.Split(new Char[] { ' ', ',', '.', '-', '\n', '\t' });
for (int i = 0; i < multiArray.Length; i=i+2)
{
try
{
string Key = string.Empty;
string Value = string.Empty;
Key = multiArray[i].ToString().Replace("{",string.Empty).Replace("\"", string.Empty).Replace(":", string.Empty).Trim();
Value = multiArray[i=i+1].ToString().Replace("{", string.Empty).Replace("\"", string.Empty).Replace(":", string.Empty).Trim();
ValueList .Add(Key, Value);
}
catch (Exception ex)
{
}
}
return ValueList ;
}
string someJson = @"{""ErrorMessage"": """",""ErrorDetails"": {""ErrorID"": 111,""Description"": {""Short"": 0,""Verbose"": 20},""ErrorDate"": """"}}";
Dictionary<string, string> ValueList = getValue(someJson);