Table of Contents
Each JSON will be parsed according to a specific type or class available in a particular programming language. For instance, an array of integers in JSON will be parsed into a vector of integers in C++.
To better understand the JSON input you need to provide in the test cases, it’s recommended to review the JSON notation.
JSON Notation #
Type | Example |
---|---|
string | "a" |
boolean | false |
integer | 12 |
float | 12.0 |
array of string | ["a","b"] |
array of boolean | [false] |
array of integer | [12] |
array of float | [12.0, 13.34] |
string matrix | [["a","b"],["c"]] |
boolean matrix | [[false],[true]] |
integer matrix | [[12]] |
float matrix | [[12.0, 13.34],[0.2]] |
string linked list | {value: "as", next: { value: "x" }} |
boolean linked list | {value: true, next: { value: false }} |
integer linked list | {value: 1, next: { value: 21, next: { value: 14 } }} |
float linked list | {value: 1.1, next: { value: 2.21 }} |
string doubly linked list | {value: "as", next: { value: "x" }} |
boolean doubly linked list | {value: true, next: { value: false }} |
integer doubly linked list | {value: 1, next: { value: 21, next: { value: 14 } }} |
float double linked list | {value: 1.1, next: { value: 2.21 }} |