Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i will get json object of format

{
"complaint": {
"encounterdata" : {
"firstname": "<first name="">",
"lastname" : "<last name="">",
"gender" : "",
"address" : {
"address1": "<address1>",
"address2": "<address2>",
"city" : "<city>",
"state" : "<state>",
"pincode" : "<pincode>"
},
"email" : "<email id="">",
"phone" : "<phone number="">",
"id" : {
"idtype" : "<idtype>",
"idnumber" : "<idnumber>"
}
},

"diagnosticdata" : {
"ecg" : {
"ecgfilename" : "<complaintid_ecg.jpg>"
},
"bpm" : {
"sysrate" : "<systolic rate="">",
"diarate" : "<dialect rate="">",
"pulserate" : "<pulse rate="">"
},
"temperature" : {
"temperature" : "<body temperature>"
},
"spo2" : {
"oxypercentage" : "<oxygen percentage="">"
},
"fetaldoppler" : {
"heartrate" : "<heartbeat rate="">"
}

}

}
}
Now i need to deserialize this json data and save it in database,how can i do that.
Posted
Comments
Joan Magnet 2-Mar-15 3:08am    
If you're trying to find out an easy way, take a look at json.net framework, it's open source.

http://www.newtonsoft.com/json

1 solution

Look on the link below


Deserialize-JSON-with-C"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900