-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSample.json
More file actions
71 lines (64 loc) · 1.65 KB
/
Copy pathSample.json
File metadata and controls
71 lines (64 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# JSON does not support comment, just writing here and below after # as for information.
---------------------- example with an array of values (list)-------------------
{
"Repository": "quay.io/redhattraining/books",
"Parent": "",
"Comment": "",
"Tags": [
"v1.0",
"v1.1",
"v1.2",
"v1.3",
"latest",
"v1.4"
],
"location" : [] # this is an empty array
}
----------------------another example with an array of objects-------------------
{
"comment": "# open and closing of an object block",
"name": "value",
"surname": "value",
"id":3,
"isProgrammer":true,
"hobbies": ["abc","def"],
"friends": [{
"comment": "# open and closing of an array of object block starting after [",
"name": "value",
"surname": "value",
"id":3,
"isProgrammer":true,
"hobbies": ["abc","def"],
"friends": [...]
},{
"name": "value",
"surname": "value",
"id":3,
"isProgrammer":true,
"hobbies": ["abc","def"],
"friends": [...]
}] # end of array of object block
}
----------------------------------- another example starting with a list---------------------
[
{
"name": "IBM",
"noOfEmp": 10000,
"ceo": "Marry",
"rating": 3.6
},
{
"name": "somecmp",
"noOfEmp": 1000,
"ceo": null,
"rating": 3.6
}
]
----------------------example-----------------
"Config": {
"User": "27",
"ExposedPorts": {
"3306/tcp": {} # this is an empty block / data object
}
}
----------------------------------------------