This project has moved. For the latest updates, please go here.

Override DateTime deserialization

Feb 4, 2014 at 12:44 PM
When I get a big JSON string, which contains for example a unixtimestamp, like this:
Date: "/Date(1382400000)/"

It parses in my case in a wrong dateTime.
Here is my code so far:
private JEnumerable<JObject> GetJsonObject(string json)
      return GetChildren(JObject.Parse(json))
          .First(c => c.Type == JTokenType.Property)

public IEnumerable<JToken> GetChildren(JToken json)
      foreach (var c in json.Children())
        yield return c;
        foreach (var cc in GetChildren(c))
          yield return cc;
How can I change my code, that this works?