Do not alter json in docker save

Fix #6455
Fix #6340
Close #6385