An API returns {"enabled":true,"ports":[1,2]}. Which statement correctly interprets this JSON?

Published
  1. enabled is a Boolean and ports is an array
  2. Both enabled and ports are strings
  3. The document is invalid because true must be quoted
  4. enabled is a string and ports is an object

Comments — 0