fixing writers for json and numbers