ExamGecko
Question list
Search
Search

Question 39 - JN0-223 discussion

Report
Export

Which statement is valid regarding YAML and JSON?

A.
YAML and JSON use indentation.
Answers
A.
YAML and JSON use indentation.
B.
White space is ignored in YAML and JSON.
Answers
B.
White space is ignored in YAML and JSON.
C.
Comments are available in YAML and JSON.
Answers
C.
Comments are available in YAML and JSON.
D.
YAML and JSON are case-sensitive.
Answers
D.
YAML and JSON are case-sensitive.
Suggested answer: D

Explanation:

Both YAML and JSON are case-sensitive, meaning that the distinction between uppercase and lowercase characters matters. For example, in JSON or YAML, Key and key would be considered different.

Option D (case-sensitive) is correct because both YAML and JSON treat keys and values with different cases as distinct.

Option A is incorrect because, while JSON does not use indentation, YAML does rely on indentation to define structure. Option B is incorrect because whitespace can be significant in YAML for structure, and Option C is incorrect because JSON does not support comments, while YAML does.

Supporting

Reference:

YAML and JSON Documentation: The official specifications for both YAML and JSON emphasize their case sensitivity.

asked 18/09/2024
Rio Ordonez
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first