I'm a new programmer and I'm really stuck (likely being so new and having so little knowledge) I need to convert a json string (something like this):
[
{
"Start": "date",
"Finish": "date",
"Subject": "",
"Comments": "",
"Site": "address",
"Location": null,
"Status": false,
"Arrived": true,
"Noshow": false,
"Services": "Initial Consultation",
"Attendees": [
{
"AccountId": 1111,
"AccountType": "MP",
"Name": "MMS (FP), Support "
},
{
"AccountId": 2220915,
"AccountType": "PA",
"Name": "Test, Patient "
}
]
},
]
into XML like this:
<?xml version="1.0" encoding="UTF-8"?>
true
1111
MP
MMS(FP), Support
2220915
PA
Test, Patient
date
false
Initial Consultation
address
date
false
`
And have tried Googling various answers to no avail. I've tried lots of permutations of JsonConvert.DecryptXmlNode(filename); but these all through up errors. The errors I've had include "Data at root level is invalid." and "Can only convert json that begins with a valid object".
For the purposes of clarification, I've been sent hundreds of Json files (no idea what is in them) and need a sort of 'catch all' scenario.
Thank you in advance.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)