JSON Object :
An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon) and the name/value pairs are separated by , (comma).
JSON Array :
An array is an ordered collection of values. An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by , (comma).
Key:Value Pair: Each and every colon identifies one key:value pair, with the key before
the colon and the value after the colon.
■ Key: Text, inside double quotes, before the colon, used as the name that references a
value.
424 CCNA 200-301 Official Cert Guide, Volume 2
■ Value: The item after the colon that represents the value of the key, which can be
■ Text: Listed in double quotes.
■ Numeric: Listed without quotes.
■ Array: A special value (more details later).
■ Object: A special value (more details later)
■ Multiple Pairs: When listing multiple key:value pairs, separate the pairs with a comma at
the end of each pair (except the last pair)
D is correct
In JSON, they take on these forms:
An object is an unordered set of name/value pairs. An object begins with {left brace and ends with }right brace. Each name is followed by :colon and the name/value pairs are separated by ,comma.
https://www.json.org/json-en.html
D is correct.
Explanation:
JSON (JavaScript Object Notation) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays (or other serializable values).
Whilst an object is an unordered collection, whereas the array is ordered, the real differentiator is that the JSON object is a collection of key-value pairs in curly braces. In comparison, a JSON array is just a list of values in square backets.
JSON Array: [1, 2, "three", true, null]
JSON Object:
{
"name": "John",
"age": 30,
"isStudent": false,
"grades": [90, 85, 92]
}
I thought it was the array at first, but the question states that it's an "Attribute-value pair" and the array in JSON looks like this { "Key":["Value", "Value", "Value"] }
This section is not available anymore. Please use the main Exam Page.200-301 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MikD4016
Highly Voted 2 years, 2 months ago[Removed]
Most Recent 7 months, 4 weeks agodave1992
2 years, 11 months agosp3nc3
3 years, 1 month agodicksonpwc
3 years, 2 months agoInsidious_Intent
3 years, 3 months agoPaddyInNZ
11 months, 3 weeks agoiGlitch
2 years, 5 months agoBooleanPizza
3 years, 2 months agodigimaniac
3 years, 2 months ago