`sum` should be `"sum"` (json keys must be quoted)