Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract VDF's into separate JSON files, with and without duplicate keys allowed #9

Merged
merged 3 commits into from
Feb 24, 2017

Conversation

watbe
Copy link
Contributor

@watbe watbe commented Feb 24, 2017

An internal project got caught out by the previous change (#7) where we expected a certain structure of JSON to be output. This workaround means that we revert to the previous behaviour of disallowing duplicate keys in the json output. Instead, we now extract VDF into a separate file; _with_dupes.json alongside the original.

Users should choose whether they need a static structure (without the possibility of duplicate keys) or whether they need to use a flexible structure (so you can read different values from duplicated keys).

For example, for items_game.json, the original no longer allows duplicate keys, whereas items_game_with_dupes.json allows duplicate keys.

- introduces a new output which essentially allows duplicate keys in the
  output. users should choose which file they wish to read.
@watbe watbe merged commit 141aa97 into master Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant