JSON
HejJeg har en for mig ret svær opgave der lyder sådan her:
Personer skal fra en webside indtaste diverse oplysninger om dem selv. Når det er gjort skal data hentes vha JSON.
JSON har jeg overhovedet ingen erfaringer med og er lidt på bar bund.
Tanken er at et windowsform skal kunne hente dagens indtastninger/JSON, hvilket nogenlunde foregår herfra:
http://voresside.kundeside.dk/json?key=t6%$VAKs
Vi modtager følgende JSON.JSON med følgende indhold:
"name": "B Nrg",
"reg_nr": "",
"cpr_nr": "1",
"address": "1",
"phone": "1",
"mobile": "1",
"workphone": "1",
"email": "borg@homail.com",
"municipality": "1",
"region": "1",
"country": "1",
"city": "1",
"caregiver_address": "1",
"caregiver_phone": "1",
"caregiver_mobile": "1",
"patient_homecare": "0",
"patient_helpfor": "",
"patient_homecare_phone": "",
"patient_treatment": "0",
"patient_pigs": "0",
"patient_mrsa_positive": "0",
"patient_allergic": "0",
"patient_allergic_to": "",
"patient_allergic_symptoms": "",
"patient_height": "1",
"patient_weight": "1",
"patient_smoke": "0",
"patient_smoke_amount": "",
"patient_alcohol": "0",
"patient_alcohol_amount": "",
"patient_medication": "0",
"patient_medication_amount": "",
"patient_diseases": "0",
"patient_diseases_type": "",
"patient_pacemaker": "0",
"gp_address": "1",
"gp_city": "1",
"gp_phone": "1",
"hospital_address": "1",
"hospital_city": "1",
"may_obtain_information": "0",
"journal": "1",
"completed": "1",
"patient_image": "http://voresside.kundeside.dk/media/1012/e-dynamicwebnet-patientformphvardecom-media-_basque-country.png"
},
{
"name": "S Som",
"reg_nr": "",
"cpr_nr": "",
"address": "",
"phone": "",
"mobile": "",
"workphone": "",
"email": "ster@gail.com",
"municipality": "",
"region": "",
"country": "",
"city": "",
"caregiver_address": "",
"caregiver_phone": "",
"caregiver_mobile": "",
"patient_homecare": "0",
"patient_helpfor": "",
"patient_homecare_phone": "",
"patient_treatment": "0",
"patient_pigs": "0",
"patient_mrsa_positive": "0",
"patient_allergic": "0",
"patient_allergic_to": "",
"patient_allergic_symptoms": "",
"patient_height": "",
"patient_weight": "",
"patient_smoke": "0",
"patient_smoke_amount": "",
"patient_alcohol": "0",
"patient_alcohol_amount": "",
"patient_medication": "0",
"patient_medication_amount": "",
"patient_diseases": "0",
"patient_diseases_type": "",
"patient_pacemaker": "0",
"gp_address": "",
"gp_city": "",
"gp_phone": "",
"hospital_address": "",
"hospital_city": "",
"may_obtain_information": "0",
"journal": "0",
"completed": "0",
"patient_image": "http://voresside.kundeside.dk/media/1012/e-dynamicwebnet-patientformphvardecom-media-_basque-country.png"
}
Nu er opgaven så at indhente ovenstående data til en Windowsform så jeg kan indsætte data i vores SQL database. Det sidste har jeg ingen problemer med men hvordan SØREN henter jeg JSON til windowsformen??
Vh Steen