Add JSON number write handlers.