fix mandrill JSON generation