tag | 2ba8585fee5babfe0912bf10f50aadf6625c9eab | |
---|---|---|
tagger | Kevin Moore <kevmoo@google.com> | Mon Jun 17 12:20:33 2019 -0700 |
object | 4d016bc3227621e329895db6504dfd78cd9fabca |
commit | 4d016bc3227621e329895db6504dfd78cd9fabca | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Mon Jun 17 12:19:48 2019 -0700 |
committer | GitHub <noreply@github.com> | Mon Jun 17 12:19:48 2019 -0700 |
tree | fb2d954cdf9d8c5f53b2810507334bb6e31d5284 | |
parent | a0ecc9820f28d01736805d0d72c2b25bd0d2633a [diff] |
Prepare to release 2.1.16 (#54)
A parser for YAML.
Use loadYaml
to load a single document, or loadYamlStream
to load a stream of documents. For example:
import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(doc['YAML']); }
This library currently doesn't support dumping to YAML. You should use json.encode
from dart:convert
instead:
import 'dart:convert'; import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(json.encode(doc)); }