hard
Single Answer
0

Which statement best represents the following JSON data? { "interface": { "ipaddress": [ "192.168.1.2", [ "192.168.1.4" ] "subnet_mask": [ "255.255.255.0", [ "255.255.255.0" ] ], "defaultgw": "192.168.1.1" } }

Answer Options

A

The interface data is incorrect because it is missing a comma after defaultgw.

B

The interface data is incorrect because it is missing a closing square bracket after the list of IP addresses.

C

The interface data is incorrect because it contains an illegal underscore character.

D

Nothing is wrong with the JSON data.

Correct Answer: B

Explanation

The JavaScript Object Notation (JSON) data is incorrect because it is missing a closing square bracket after the IP addresses. The last comma is not needed in JSON files, as it defines the end of the hierarchy. The underscore in a JSON key or value data is not considered an illegal character.

json
syntax
troubleshooting
nested-structures