CCNA: Cisco Certified Network Associate — Question 255
Which of the following is the JSON encoding of a dictionary or hash?
Answer options
- A. {ג€keyג€: ג€valueג€}
- B. [ג€keyג€, ג€valueג€]
- C. {ג€keyג€, ג€valueג€}
- D. (ג€keyג€: ג€valueג€)
Correct answer: A
Explanation
Option A is correct because it uses curly braces and a key-value format that is standard in JSON for representing objects. Options B and C are incorrect as they either represent an array or use an incorrect format for a JSON object. Option D is also incorrect because it uses parentheses instead of the required curly braces.