Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support For Dictionaries #18

Open
Json2CSharp opened this issue Oct 9, 2020 · 1 comment
Open

Support For Dictionaries #18

Json2CSharp opened this issue Oct 9, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@Json2CSharp
Copy link
Owner

Json2CSharp commented Oct 9, 2020

Check test case : 371d1c4

@Json2CSharp Json2CSharp added enhancement New feature or request help wanted Extra attention is needed labels Oct 9, 2020
@Json2CSharp Json2CSharp pinned this issue Oct 10, 2020
@Json2CSharp
Copy link
Owner Author

{
"Authorized" : [
{"John" : ["Building 1", "Building 3", "Building 5"]},
{"Bob": ["Building 1", "Building 5"]},
{ "Joe" : ["Building 2", "Building 3"]}
]
}

// Root myDeserializedClass = JsonConvert.DeserializeObject(myJsonResponse);
public class Authorized {
public List John { get; set; }
public List Bob { get; set; }
public List Joe { get; set; }
}

public class Root    {
    public Dictionary<string,List<string>> Authorized { get; set; } 
}

@Json2CSharp Json2CSharp unpinned this issue Jan 2, 2021
@Json2CSharp Json2CSharp added this to the Behavior milestone Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant