WordPress / blueprints-library

30 stars 4 forks source link

Explore TOML support #114

Open adamziel opened 1 month ago

adamziel commented 1 month ago

JSON is a great data format, but lack of multiline strings can make writing Blueprints in it annoying. TOML seems like a reasonable alternative that supports multiline strings, has a less verbose syntax, and none of the YAML downsides (ambiguity, refs). Perhaps we could easily support both in the medium term?

cc @dmsnell @brandonpayton @juanmagarrido

flexseth commented 1 month ago

+1!

Supports

Love the idea of making blueprints more verbose!

brandonpayton commented 1 month ago

This sounds like a great idea!

If we don't have a more intelligent way of discerning between the two, is there any reason we shouldn't try parsing as JSON first and fall back to TOML?