commit | 4d369fdc27d3129cb7fd7f503e6d805136abc3cf | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Wed Mar 01 10:54:27 2023 -0800 |
committer | GitHub <noreply@github.com> | Wed Mar 01 10:54:27 2023 -0800 |
tree | 13b7aadb9e6e912eb7e63ca69ceff5b4e3ac7b38 | |
parent | a6d8781744d34c391368664b4c1e174f0433bbb6 [diff] |
benchmark: fix output.json (#137)
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)); }