Added a couple of ruby utils for dealing with json