c# - Creating nested objects from JSON -
i have following json needs represented object.
[ { "to": "+27001234567", "scheduling":{ "date": datetime, "description": string }, "id": "hello world!" } ]
the problem i'm having object inside of object. way this?
you can represent nested objects json c# this:
public class scheduling { public datetime date { get; set; } public string description { get; set; } } public class rootobject { public string { get; set; } public scheduling scheduling { get; set; } public string id { get; set; } }
also want check site found useful: http://json2csharp.com/
Comments
Post a Comment