Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2015 04:15
Show Gist options
  • Save anonymous/bb43f57c6e1ec8716c98 to your computer and use it in GitHub Desktop.
Save anonymous/bb43f57c6e1ec8716c98 to your computer and use it in GitHub Desktop.
# open and change
Dir.glob('/Original/*.json').each do |item|
json = File.read('*.json')
hash = JSON.parse(json)
hash.keys.each do |k|
hash[k] += 1
end
# @hash["version"] += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment