Automation and Programmability

Which three statements about JSON syntax are correct? (Choose three.)

Choose 3 answers

Show the answer

Correct answersC. An array is enclosed in square brackets.E. An object is enclosed in curly braces.F. Keys are strings enclosed in double quotes.

AWhy not this: JSON strings must use double quotes; single quotes make the document invalid.

BWhy not this: JSON defines no comment syntax; a hash character is not valid in the document.

CWhy this is right: Square brackets wrap an ordered list of values, which is a JSON array.

DWhy not this: Pairs are separated by commas; a semicolon is not valid JSON punctuation.

EWhy this is right: Curly braces wrap an unordered set of key-value pairs, which is a JSON object.

FWhy this is right: JSON requires every key to be a string in double quotes, such as "hostname".

JSON keys are double-quoted strings, objects use curly braces, and arrays use square brackets. Pairs are separated by commas, not semicolons, and JSON has no comment syntax.