JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2021) — Question 4
What is a valid JSON object?
Answer options
- A. "hostname:vmx-1"
- B. { "hostname": "vmx-1"}
- C. ["vmx-1:172.25.11.1"]
- D. {"vmx-1", "172.25.11.1"}
Correct answer: B
Explanation
The correct answer is B, as it correctly uses key-value pairs enclosed in curly braces, which defines a JSON object. Option A is just a string, C is an array, and D improperly uses commas instead of colons to separate key-value pairs, making them invalid JSON formats.