I have been trying all the daylong to build a model in asp.net mvc3 for handling this json post. I have looked at most of stackoverflow'post but still couldn't succeed building it. The json data is as below
{"form":[{
"ora1":{"start":"08:00:00","end":"08:50:00"},
"ora2":{"start":"09:00:00","end":"09:50:00"},
"ora3":{"start":"10:00:00","end":"10:50:00"},
"...":{"start":"12:10:00","end":"13:00:00"},
"oran":{"start":"12:10:00","end":"13:00:00"}
}]}
or even
{"form":
{"Monday":
{
"ora1":{"start":"08:00:00","end":"08:50:00"},
"ora2":{"start":"09:00:00","end":"09:50:00"},
"ora3":{"start":"10:00:00","end":"10:50:00"},
"....":{"start":"11:10:00","end":"12:00:00"},
"oran":{"start":"12:10:00","end":"13:00:00"}
}
},
{"Tuesday":
{
"ora1":{"start":"08:00:00","end":"08:50:00"},
"ora2":{"start":"09:00:00","end":"09:50:00"},
"ora3":{"start":"10:00:00","end":"10:50:00"},
"....":{"start":"11:10:00","end":"12:00:00"},
"oran":{"start":"12:10:00","end":"13:00:00"}
}
}
}
Any kind of help will be appreciated. Thank you dynamicus