MongoDB DBA · Question 138 · Multiple choice

22. Which of the following are valid JSON objects? Check all that apply:

Answer options

  1. A.
    { "hello" }
  2. B.
    { "myobject" : [ 1, 2, 3, { "name" : "four" } ] }
  3. C.
    { }

Answer confidence: High

Correct answer: B, C

Explanation language: Chinese

合法 JSON 对象必须是花括号包裹的“键:值”集合:B 是含嵌套数组与子文档的合法对象,C 是合法的空对象 {}。A 的 { "hello" } 只有字符串、缺少冒号和值,不是合法 JSON。

Papers containing this question

This question appears in 3 bank records. Public pages combine identical prompts and options. Selected questions display the highest-confidence record; the others show a short preview. Paper-based learning preserves each record's answer, explanation, and confidence.

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗