Dart
Latest commit 1eeed09 Oct 13, 2016 @nex3 nex3 committed on GitHub Reject duplicate keys. (#22)
Permalink
Failed to load latest commit information.
benchmark Limit the number of benchmark trials. Sep 2, 2015
lib Reject duplicate keys. (#22) Oct 13, 2016
test Reject duplicate keys. (#22) Oct 13, 2016
.analysis_options
.gitignore Upgrade to the new test runner. Jul 16, 2015
.test_config Upgrade to the new test runner. Jul 16, 2015
CHANGELOG.md
LICENSE
README.md
codereview.settings
libyaml-license.txt
pubspec.yaml Reject duplicate keys. (#22) Oct 13, 2016

README.md

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));
}