serializing FlashHash rails object as json.