pre-allocate json responses