Japan and Indonesia have agreed to cooperate on decarbonisation technology such as hydrogen, ammonia and carbon capture and storage (CCS), to transition to clean energy.