Json

Questions and Answers

  • By convention, what name is used for the first key in a JSON schema?
    1. schema
    2. \$schema
    3. JsonSchema
    4. JSONschema
  • Which code is the closest JSON equivalent of the data shown?
    1. [ ]
    2. [ ]
    3. [x]
    4. [ ]
  • Which JavaScript method converts a JavaScript value to Json?
    1. JSON.parse()
    2. JSON.stringify()
    3. JSON.toString()
    4. JSON.objectify()
  • Which data type is NOT part of JSON standard?
    1. string
    2. number
    3. date
    4. array
  • Which term is commonly used to refer to converting data to JSON?
    1. unpacking
    2. serialization
    3. deserialization
    4. parsing
  • Which code uses the correct JSON syntax to encode the key/value pair shown?
    1. "accountNum": "000605802"
    2. accountNum: "000605802"
    3. "accountNum": 000605802
    4. accountNum: 000605802
  • What character do you specify before a JSON control character when you want to use that control characters as a literal part of a string?
    1. `/`
    2. `\`
    3. `:`
    4. `{`
  • Which date type is part of the JSON standard?
    1. Boolean
    2. map
    3. promise
    4. function
  • Which key name is used to specify properties that must be included for JSON to be valid?
    1. important
    2. base
    3. core
    4. required
  • Which is the valid JSON equivalent of the data shown?
    1. [ ]
    2. [ ]
    3. [x]
    4. [ ]
  • How do you store several paragraphs of text as a string in JSON?
    1. Escape all whitespaces expect space characters.
    2. Escape line breaks.
    3. Escape paragraphs.
    4. Remove all whitespaces
  • What data type is represented by the value of the key/value pair shown?
    1. string
    2. Boolean
    3. number
    4. object
  • If you need to store the loggedIn status of a user in JSON as a boolean, what is the correct syntax?
    1. "loggedIn": (true)
    2. loggedIn: "true"
    3. "loggedIn": true
    4. loggedIn: {true}
  • What does JSON with padding (JSON-P) use to make a request?
    1. an `` element
    2. a header request
    3. the `