JSON Basics - Understanding JSON for Cisco Solutions

JSON Basics for Cisco Solutions


Which option about JSON is true -



Click on the arrows to vote for the correct answer

A. B. C. D.


JSON data is written as name/value pairs.

A name/value pair consists of a field name (in double quotes), followed by a colon, followed by a value: name:Mark JSON can use arrays.

Array values must be of type string, number, object, array, boolean or null.

For example: { name:John, age:30, cars:[ Ford, BMW, Fiat ] }

Option B is true: JSON is used to describe structured data that includes arrays.

JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is a text format that is completely language-independent but uses conventions that are familiar to programmers of the C family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.

JSON is used to describe structured data, such as objects and arrays, and is often used for transmitting data between a server and web application as an alternative to XML. JSON data is represented as a key-value pair, where the key is a string that identifies the value. The value can be a string, number, Boolean, null, object, or array.

Option A is incorrect because JSON does not use predefined tags or angle brackets to delimit markup text. Instead, it uses braces ({}) to delimit objects and square brackets ([]) to delimit arrays.

Option C is incorrect because JSON is primarily used for transmitting data between a server and a web application, but it can also be used for storing information.

Option D is incorrect because JSON is not more verbose than XML. In fact, it is often considered more concise and easier to read than XML due to its simplified syntax.