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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
{
# Analog of mock.json in hjson
type: hjson
parent1: {
name: parent1
id: 1234
child1: {
name: child1
type: hjson
grandchild1: {
ids: [
1,
2,
3,
]
on: true
}
empty: {}
}
strmap: {
key1: val1
key2: val2
key3: val3
}
strsmap: {
key1: [
val1
val2
val3
]
key2: [
val4
val5
]
}
intmap: {
key1: 1
key2: 1
key3: 1
}
floatmap: {
key1: 1.1
key2: 1.2
key3: 1.3
}
boolmap: {
ok1: true
ok2: true
notok3: false
}
}
parent2: {
name: parent2
id: 5678
child2: {
name: child2
grandchild2: {
ids: [4, 5, 6]
on: true
}
empty: {}
}
}
orphan: [
red
blue
orange
]
empty: {}
bools: [
true,
false,
true,
]
intbools: [
1,
0,
1,
]
strbools: [
"1",
"t",
"f"
]
strbool: "1"
time: "2019-01-01"
duration: "3s"
negative_int: -1234
}
|