a_string: "test string" int1: +99 int2: 42 int3: 0 int4: -17 int5: 1_000 int6: 5_349_221 int7: 53_49_221 # Indian number system grouping # Hexadecimal with prefix `0x` hex1: 0xDEADBEEF hex2: 0xdeadbeef hex3: 0xdead_beef # Octal with prefix `0o` oct1: 0o01234567 oct2: 0o755 # useful for Unix file permissions # Binary with prefix `0b` bin1: 0b11010110 # Fractional flt1: +1.0 flt2: 3.1415 flt3: -0.01 # Exponent flt4: 5e+22 flt5: 1e06 flt6: -2E-2 # Both flt7: 6.626e-34 flt8: 224_617.445_991_228 # Infinity sf1: inf # Positive infinity sf2: +inf # Positive infinity sf3: -inf # Negative infinity # Null null: null # Empty objects empty_single: empty # Bool bool1: true bool2: false # Digits as key 1234: "1234" # Object services: nginx: host: "127.0.0.1" port: 80 apache: virtual_host: "10.10.10.4" port: 81 # Arrays integers: [ 1, 2, 3 ] colors: [ "red", "yellow", "green" ] nested_arrays_of_ints: [ [ 1, 2 ], [3, 4, 5] ] nested_mixed_array: [ [ 1, 2 ], ["a", "b", "c"] ] # Mixed-type arrays numbers: [ 0.1, 0.2, 0.5, 1, 2, 5 ] tango_singers: [ user1: name: "Carlos" surname: "Gardel" year_of_birth: 1890, user2: name: "AnĂ­bal" surname: "Troilo" year_of_birth: 1914 ] integers2: [ 1, 2, 3 ] integers3: [ 1, 2, # Trailing comma ] $my_string_var: "127.0.0.1" $my_integer_var: 8080 my_server: host: $my_string_var empty_nested: empty port: $my_integer_var native_auth: true $name: "Gura" gura_is_cool: "$name is cool"