optimizations to json writing