0

I need deserialize a json like this:

{"success":true,"loggedin":false,"data":{"accessTime":1285167129}}

My objects are:

public class Heartbeat
{
    public bool Success { get; set; }
    public bool Loggedin { get; set; }

    public HeartbeatData Data { get; set; }
}

public class HeartbeatData
{
    public int AccessTime { get; set; }
}

But HeartbeatData doesn´t serialize.

Asaph
  • 159,146
  • 25
  • 197
  • 199
Juliano Oliveira
  • 304
  • 4
  • 12

1 Answers1

1

Try using JSON.net to see if that will work, then we see if it's Hammock or C# causing the issue.

Alexander Forbes-Reed
  • 2,823
  • 4
  • 27
  • 44