datacamp-logo

Can you spot JSON?

Here is some information on a couple of fictional Jasons stored in different formats. Which one is JSON?

A:

<jason>
  <person>
    <first_name>Jason</first_name>
    <last_name>Bourne</last_name>
    <occupation>Spy</occupation>
  </person>
  <person>
    <first_name>Jason</first_name>
    <last_name>Voorhees</last_name>
    <occupation>Mass murderer</occupation>
  </person>
</jason>

B:

first_name, last_name, occupation
Jason, Bourne, Spy
Jason, Voorhees, Mass murderer

C:

[{ 
   "first_name": "Jason",
   "last_name": "Bourne",
   "occupation": "Spy"
 },
{
  "first_name": "Jason",
  "last_name": "Voorhees",
  "occupation": "Mass murderer"
}]
Answer the question
50 XP
Possible Answers
  • press
  • press
  • press