thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

JavaScript Object Notation (JSON)

A lightweight, text-based data interchange format of objects (key-value pairs) and arrays, widely used by REST APIs.

Definition

JSON supports strings (double quotes only), numbers, booleans, null, objects, and arrays. It has no comments. In Python, json.loads parses a string to dicts and lists; json.dumps serializes back.

Example

{"hostname": "r1", "interfaces": [{"name": "Gi1", "enabled": true}]}

Exam tip

JSON requires double quotes and has no comments; json.load reads a file, json.loads reads a string.

Don't confuse it with

Related terms