Crossfire Format Comparison

Current YAML XML JSON TOML
Pros:
  • Known within crossfire community
  • Does allow comments
  • Does not require quoting
Cons:
  • Completely custom
Notes:
Pros:
  • Common, well-known
  • Does allow comments
  • Does allow multiline strings
  • Does not require quoting
  • Easy to read
  • Whitespace forces nice formatting
Cons:
  • Whitespace dependant
  • YAML spec is complicated
Notes:
  • Not using quotes can lead to ambiguity between numbers and strings
Pros:
  • Common, well-known
  • Does allow comments
  • Does allow multiline strings
  • XSD Validation
Cons:
  • Hard to read
Notes:
  • Spec here is arbitrary
Pros:
  • Common, well-known
  • Easy to read
Cons:
  • Requires commas
  • Requires quotes
  • Does not allow comments
  • Does not allow multiline strings
  • Does not allow trailing commas
Notes:
  • Should "ingred" allow plain strings to signify [1, "item"], mixed with [7, "water"]?
Pros:
  • Does allow comments
  • Does allow multiline strings
  • Does allow trailing commas
  • Easy to read
Cons:
  • Requires quotes
  • Does not have a null
  • Arrays must be same type
  • "ingred" list is more complicated
Notes: