tag | bc65a8d7f3c47f9936cf8b4652c0756b562ec12b | |
---|---|---|
tagger | Kevin Moore <kevmoo@google.com> | Tue May 22 08:45:34 2018 -0700 |
object | 70bede610892f5f94f0ebd340fb4cfc69bc34585 |
commit | 70bede610892f5f94f0ebd340fb4cfc69bc34585 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue May 22 17:44:26 2018 +0200 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Tue May 22 08:44:26 2018 -0700 |
tree | 4a6baf89926ff33a5f2c877918397ffc2fba2627 | |
parent | 32c70a148842157805ca5c1592bdb95670a9aac1 [diff] |
Remove usage of deprecated `onError` argument to `int.parse` and `double.parse`. (#43)
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)); }