Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created July 24, 2020 05:47
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 takkanm/96a16286900171b386cc6cd3cef2b81c to your computer and use it in GitHub Desktop.
Save takkanm/96a16286900171b386cc6cd3cef2b81c to your computer and use it in GitHub Desktop.
$ ruby -e 'require "json"; puts JSON.load(ARGF.read).each {|item| item === Hash ? item.map {|k,v| [k.to_s, v]}.to_h : item }.to_json' ~/Downloads/keyboard-layout.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment