This JSON string (or almost, it will be a valid JSON after correcting it and removing the trailing comma, since it is now invalid) represents an array of string arrays. It can be easily deserialized into string[][] using the built-in .NET JavaScriptSerializer class:
using System; using System.Web.Script.Serialization; class Program { static void Main() { var json = @"[ [ ""US\/Hawaii"", ""GMT-10:00 - Hawaii"" ], [ ""US\/Alaska"", ""GMT-09:00 - Alaska"" ] ]"; var serializer = new JavaScriptSerializer(); var result = serializer.Deserialize<string[][]>(json); foreach (var item in result) { foreach (var element in item) { Console.WriteLine(element); } } } }
and exactly the same result can be achieved using JSON.NET using the following:
var result = JsonConvert.DeserializeObject<string[][]>(json);
source share