is this a ruby idiom?  It just seems hard for me to read with so much stuff being so indented.  I think it'd be easier to read if it was formatted the way json typically is.