Japanese did enough evil through Asia during WW2 to more than deserve that.
In general, ‘deserve’ should always be followed with ‘because…’. Just saying x deserves y assumes we agree on: what x did, an ethical/moral system, and that y is the best punishment/reward in that ethical/moral system.