Skip to content

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

Merged
watbe merged 3 commits intomasterfrom
suffix-alternate-vdf-json-extraction
Feb 24, 2017
Merged

Extract VDF's into separate JSON files, with and without duplicate keys allowed#9
watbe merged 3 commits intomasterfrom
suffix-alternate-vdf-json-extraction

Conversation

@watbe
Copy link
Copy Markdown
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