Do not alter json in docker save

Fix #6455
Fix #6340