Created
November 30, 2015 13:57
-
-
Save fiddyspence/f5edcdf75268e6646587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = JSON::load File.read '3.8.4.catalog.json' | |
bar = {} | |
bar = foo['data'] | |
bar['metadata'] = foo['metadata'] | |
bar['document_type'] = foo['document_type'] | |
File.open('munge.json','w') {|f| f.write bar.to_json } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment