How to Convert a Ruby Hash to JSON | CodeTrail