fhir_yaml 0.1.0 copy "fhir_yaml: ^0.1.0" to clipboard
fhir_yaml: ^0.1.0 copied to clipboard

discontinued
outdated

Dart package to format JSON data to YAML. Supports formatting conventions of pubspec files.

example/main.dart

/// From Package: https://github.com/alexei-sintotski/json2yaml
/// https://github.com/alexei-sintotski/json2yaml/blob/master/example/main.dart

import 'package:fhir_yaml/fhir_yaml.dart';

// ignore_for_file: avoid_print

void main() {
  const developerData = {
    'name': "Martin D'vloper",
    'job': 'Developer',
    'skill': 'Elite',
    'employed': true,
    'foods': ['Apple', 'Orange', 'Strawberry', 'Mango'],
    'languages': {
      'perl': 'Elite',
      'python': 'Elite',
      'pascal': 'Lame',
    },
    'education': '4 GCSEs\n3 A-Levels\nBSc in the Internet of Things'
  };

  print(json2yaml(developerData));
}
6
likes
0
pub points
67%
popularity

Publisher

verified publisherfhirfli.dev

Dart package to format JSON data to YAML. Supports formatting conventions of pubspec files.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on fhir_yaml