Serializing JSON for email confirmation