Automation and Artificial Intelligence
Which JSON value represents an explicitly absent value rather than a string or an object?
Show the answer
Correct answerB. null
AWhy not this: Braces represent an empty object, not an absent value.
BWhy this is right: The unquoted literal null represents an explicitly absent value.
CWhy not this: Empty quotation marks represent a string with zero characters.
DWhy not this: Quotation marks make this a string containing the text null.
The JSON literal null explicitly represents an absent value. Quoting "null" makes it a string containing four characters, not the null literal.