Which two of the following statements about JSON are true?
Choose two
A.
Curly braces are used to create arrays.
B.
Square brackets are used to create arrays.
C.
Curly braces are used to create nested objects.
D.
Square brackets are used to create nested objects.
The Answer Is:
B, C
This question includes an explanation.
Explanation:
JSON syntax defines two universal structural components: objects and arrays. An object is an unordered collection of zero or more key/value pairs wrapped in curly braces ({ }). Keys must be string literals enclosed in double quotes, separated from values by colons, with individual entries delimited by commas. Because the value of an object property can itself be another JSON object, curly braces are used to construct deeply nested objects and hierarchical trees. In contrast, an array represents an ordered collection of values enclosed within square brackets ([ ]). Elements inside an array can include primitives (strings, numbers, booleans, null) or complex types (objects or other arrays). Therefore, square brackets denote ordered sequences or arrays, while curly braces define associative structures, mappings, and nested objects. Options claiming curly braces define arrays or square brackets represent objects directly contradict RFC 8259 syntax specifications.
[Reference: JNCIA-DevOps Study Guide — Data Serialization: JSON Syntax and Data Structures., ]
JN0-224 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"