File: basic-data.tml

package info (click to toggle)
libyaml-tiny-perl 1.64-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 556 kB
  • ctags: 80
  • sloc: perl: 1,363; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== basic hash
# This is just a simple one key hash.
--- yaml
a: b
--- json
{"a":"b"}

=== double quoted keys
# Hash with quoted key with embedded newline
--- yaml
"a\nb": c
--- json
{"a\nb":"c"}
# --- dump
# "a\nb": c

=== basic array
# This is just a simple one key hash.
--- yaml
- a
-b
--- json
["a","b"]