Which JSON is equivalent to the XML-encoded data?
Refer to the exhibit.
Which JSON is equivalent to the XML-encoded data?
A)
B)
C)
D)
A . Option A
B . Option B
C . Option C
D . Option D
Answer: C
Explanation:
Reference: https://www.guru99.com/json-vs-xml-difference.html
Latest 200-901 Dumps Valid Version with 211 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Yes, but in the A) Answer the whole thing is an array.
XML doesn’t support arrays, but JSON does.
In the B) Answer, there’s one open square bracket [ , that can’t be right.
Answer is `A` ; URL to conver the above code check https://www.convertjson.com/xml-to-json.htm
I did , I got following output which will match with A answer
{
“books”: {
“science”: {
“id”: “01”,
“name”: “Tom”,
“lastname”: “Price”
},
“math”: {
“id”: “02”,
“name”: “Nick”,
“lastname”: “Thameson”
}
}
}
Answer is B.
On A, it´s an array []