300-415 · Question #330
What are three types of data that JSON uses when Cisco APIC REST API uses JavaScript?
The correct answer is B. SCALAR, OBJECT, and ARRAY. When Cisco APIC REST API utilizes JavaScript with JSON, the three primary data types JSON uses are SCALAR, OBJECT, and ARRAY.
Question
Options
- AGET, PUT, and DELETE
- BSCALAR, OBJECT, and ARRAY
- CGET, PUT, and POST
- DSCALAR, POST, and OBJECT
How the community answered
(21 responses)- B90% (19)
- C5% (1)
- D5% (1)
Why each option
When Cisco APIC REST API utilizes JavaScript with JSON, the three primary data types JSON uses are SCALAR, OBJECT, and ARRAY.
GET, PUT, and DELETE are HTTP methods used in REST APIs for operations, not JSON data types.
JSON data types are fundamental to its structure, encompassing scalar values (like strings, numbers, booleans, null), objects (key-value pairs), and arrays (ordered lists of values).
GET, PUT, and POST are HTTP methods used in REST APIs for operations, not JSON data types.
POST is an HTTP method, not a JSON data type; SCALAR and OBJECT are valid JSON data types.
Concept tested: JSON data types in REST API context
Source: https://www.w3schools.com/js/js_json_datatypes.asp
Topics
Community Discussion
No community discussion yet for this question.