If the connection is the shortest possible, JAL should provide STPC. Free stopover hotel. You should contact JAL to check you eligibility.
It will definitely be necessary with a hotel, as access to airside Haneda is only when the flight is same day. So not right after arriving from Narita.