composer.json and composer.lock

I am using composer when updating. When updating core composer.json and the lock file are updated also.

Shall I copy back the old composer.json and composer.lock or only composer.json?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/21/feed