Bird
0
0

Which of these is a valid JSON data type?

easy📝 Conceptual Q2 of 15
Rest API - Request and Response Format
Which of these is a valid JSON data type?
AFunction
BSymbol
CUndefined
DString
Step-by-Step Solution
Solution:
  1. Step 1: Identify JSON data types

    JSON supports strings, numbers, objects, arrays, booleans, and null.
  2. Step 2: Eliminate invalid types

    Functions, undefined, and symbols are not valid JSON types.
  3. Final Answer:

    String -> Option D
  4. Quick Check:

    Valid JSON type = String [OK]
Quick Trick: JSON supports only basic data types like strings and numbers [OK]
Common Mistakes:
MISTAKES
  • Including functions as JSON types
  • Confusing JavaScript types with JSON types
  • Thinking undefined is valid in JSON

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes