public static Guid[] DeserializeSystemGuidArray(JSONArray jsonArray) { var result = new Guid[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = new Guid(jsonArray.OptString(i)); } return result; }
public static DateTime[] DeserializeSystemDateTimeArray(JSONArray jsonArray) { var result = new DateTime[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = JsonConvert.ToDateTime(jsonArray.OptString(i)); } return result; }
public static TimeSpan[] DeserializeSystemTimeSpanArray(JSONArray jsonArray) { var result = new TimeSpan[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = JsonConvert.ToTimeSpan(jsonArray.OptString(i)); } return result; }
public static char[] DeserializeSystemCharArray(JSONArray jsonArray) { var result = new char[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = jsonArray.OptString(i)[0]; } return result; }
public static string[] DeserializeSystemStringArray(JSONArray jsonArray) { var result = new string[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = jsonArray.OptString(i); } return result; }