nil
is a Ruby concept. If the feed from Mandrill is JSON, you need to have the empty value be null
, and it shouldn’t be surrounded by quotes.
Does Mandrill return a non-200 status for rejected requests? That might be a cleaner way to check for problems that wouldn’t require checking for nil
.