head.daveops.net

Snippets for yer computer needs

json

require 'json'
obj = JSON.parse(File.read('./thing.json'))
obj.to_json
JSON.pretty_generate(obj)