Skip to content

Instantly share code, notes, and snippets.

@izackp
Last active October 22, 2021 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izackp/7ec51a590157464f84d530616c3d8566 to your computer and use it in GitHub Desktop.
Save izackp/7ec51a590157464f84d530616c3d8566 to your computer and use it in GitHub Desktop.
List of Data Structures for User Configuration

Comment or DM me to add to the list:

See: http://seriot.ch/parsing_json.php - Parsing JSON is a minefield. Notice how all of these json parsers are not up to spec. If they can't get it to spec then imagine the possible security issues with a format as simple as JSON.

JSON - Extremely Popular and Supported. Relatively easy to read.
XML - Old and Ugly. Widely supported. Useful if you need namespaces.
YAML - Popular format with Ruby and other server stuff. Apparently, a pain to implement and known to be insecure.
TOML - Simple configuration format. Some similarities to json. Complex arrays of objects suck tho.
HOCON - Extremely flexibile version of json.
JSON5 - Another flexible version of json. Not as flexible as others, but it has most of the important features.
HJSON - Flexible version of json.
LIBUCL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment