jpsim / Yams

A Sweet and Swifty YAML parser.
https://jpsim.com/Yams
MIT License
1.12k stars 144 forks source link

Failure to represent empty dictionary #393

Closed shmidt closed 1 year ago

shmidt commented 1 year ago

I have nested an empty dictionary and YAMS fails to convert it to YAML:

failed: caught error: "Failed to represent {
    emptydict =     {
};

An empty dictionary should be represented as {}.