200-301 · Question #1261
What is represented by the word "port" within this JSON schema?
The correct answer is A. key. In a JSON schema, 'port' typically functions as a key, a string that names or identifies a specific piece of data, or value, within an object.
Question
What is represented by the word "port" within this JSON schema?
Exhibits
Options
- Akey
- Bvalue
- Carray
- Dobject
How the community answered
(38 responses)- A95% (36)
- B3% (1)
- D3% (1)
Why each option
In a JSON schema, 'port' typically functions as a key, a string that names or identifies a specific piece of data, or value, within an object.
In JSON, a key is a string (like 'port') that uniquely identifies a value within an object, creating a key-value pair, such as '"port": 80'.
A value is the data associated with a key (e.g., '80' for the 'port' key), not the key itself.
An array is an ordered list of values enclosed in square brackets, not a single word identifying a data field.
An object is a collection of key-value pairs enclosed in curly braces, not an individual identifier like 'port'.
Concept tested: JSON data types (key)
Source: https://www.json.org/json-en.html
Topics
Community Discussion
No community discussion yet for this question.

