\ | JSON | Python | STL |
object | JSON object { "fist_name" : "John", "last_name" : "Doe" } (necessarely key-value pairs, also called properties, key unique) | object | object |
immutable list | tuple t="a",b,123 or t=("a",b,123) | tuple | |
dynamic array, ordered, value not unique | JSON array ["a","b","c","a"'] | not supported, use lists instead | vector |
doubly-linked list, key not unique | list [a,b,c,a] | list | |
tree, sorted, key unique | set {a,b,c} | set | |
map, key unique | dictionary (actually object) {"a":"b", "c":"d"} | dictionary {"a":"b", "c":"d"} | map |
dynamic array: get realloc depending on its evolving size.
.