Better grid sizing for JSON merger