Linkiden Flashcards
By convention, what name is used for the first key in a JSON schema?
$schema
Which code is the closest JSON equivalent of the data shown?
{ "color": "red", "color": "blue", "color": "green" }
Which JavaScript method converts a JavaScript value to Json?
JSON.stringify()
Which data type is NOT part of JSON standard?
date
Which term is commonly used to refer to converting data to JSON
serialization
Which code uses the correct JSON syntax to encode the key/value pair shown?
accountNum: ‘000605802’
“accountNum”: “00060504”
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?
\
Which date type is part of the JSON standard?
Boolean
Which key name is used to specify properties that must be included for JSON to be valid?
required
Which is the valid JSON equivalent of the data shown? *** MISSING OPTIONS & “DATA SHOWN”
{ "photo": { "width": "1600", "height": "900", "binaries": { "url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843" }, "animated": "false", "tags": ["116", "943", "234", "38793"], } }
How do you store several paragraphs of text as a string in JSON?
Escape all whitespaces expect space characters.
What data type is represented by the value of the key/value pair shown?
<code>loggedIn: true<code></code></code>
Boolean
If you need to store the loggedin status of a user in JSON as a boolean, what is the correct syntax?
“loggedIn”: true
What does JSON with padding (JSON-P) use to make a request?
the element
Which value is supported in the JSON specifications?
null