yakaz / yamerl

YAML 1.2 and JSON parser in pure Erlang
BSD 2-Clause "Simplified" License
204 stars 50 forks source link

Whether to support list to yaml? #45

Open turtleDeng opened 3 years ago

turtleDeng commented 3 years ago

Eg.

[
 [
  [
   {"application", "kernel"},
   {"version", "2.15.3"},
   {"path", "/usr/local/lib/erlang/lib/kernel-2.15.3"}
  ], [
   {"application", "stdlib"},
   {"version", "1.18.3"},
   {"path", "/usr/local/lib/erlang/lib/stdlib-1.18.3"}
  ], [
   {"application", "sasl"},
   {"version", "2.2.1"},
   {"path", "/usr/local/lib/erlang/lib/sasl-2.2.1"}
  ]
 ]
]
# applications.yaml
- application: kernel
  version:     2.15.3
  path:        /usr/local/lib/erlang/lib/kernel-2.15.3
- application: stdlib
  version:     1.18.3
  path:        /usr/local/lib/erlang/lib/stdlib-1.18.3
- application: sasl
  version:     2.2.1
  path:        /usr/local/lib/erlang/lib/sasl-2.2.1
dumbbell commented 2 years ago

Hi!

I never had the time to work on the serialization of YAML unfortunately. I would more than welcome such a huge improvement to this library though!