HSLYaml library?

Hey Gareth, and anyone else interested, @smohler perhaps?

How would you envision using Yaml in the context of Venus?

I’m definitely coming into this late :sloth: but I took a crack at bringing YAML into Venus with with functions for Loading, Saving, and serializing/deserializing YAML + JSON with YamlDotNet.

HSLYaml Venus Library Functions

YAML Input:

---
title: "test yaml document property"
volume: "1000"
wtf: "123333"
baseball players:
  - "Willie Mays"
  - "Jackie Robinson"
  - "Ty Cobb"
basketball players:
  - "Larry Bird"
  - "Michael Jordan"
  - "Jesus Shuttlesworth"
plates:
  - barcode: 12345
    wells:
      - A1
      - A2
      - A3
      - A4
    volume: 10.01
  - barcode: 23456
    wells:
      - A1
      - A2
      - A3
      - A4
    volume:  10.01

JSON output:

{
  "title": "test yaml document property",
  "volume": 1000,
  "wtf": 123333,
  "baseball players": [
    "Willie Mays",
    "Jackie Robinson",
    "Ty Cobb"
  ],
  "basketball players": [
    "Larry Bird",
    "Michael Jordan",
    "Jesus Shuttlesworth"
  ],
  "plates": [
    {
      "barcode": 12345,
      "wells": [
        "A1",
        "A2",
        "A3",
        "A4"
      ],
      "volume": 10.01
    },
    {
      "barcode": 23456,
      "wells": [
        "A1",
        "A2",
        "A3",
        "A4"
      ],
      "volume": 10.01
    }
  ]
}
6 Likes