Skip to content

Issue with this #1

Description

// Root myDeserializedClass = JsonConvert.DeserializeObject(myJsonResponse);
public class Awesomeobject
{
public int SomeProps1 { get; set; }
public string SomeProps2 { get; set; }
}

public class User
{
    public string id { get; set; }
    public string name { get; set; }
    public string created_at { get; set; }
    public string updated_at { get; set; }
    public string email { get; set; }
    public string testanadditionalfield { get; set; }
}

public class Class1
{
    public int id { get; set; }
    public string user_id { get; set; }
    public Awesomeobject awesomeobject { get; set; }
    public string created_at { get; set; }
    public string updated_at { get; set; }
    public List<User> users { get; set; }
}

public class Class2
{
    public string SomePropertyOfClass2 { get; set; }
}

public class Root
{
    public Class1 Class1 { get; set; }
    public Class2 Class2 { get; set; }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions