Suppress redefine warnings for TO_JSON

Fixes #60