Prune metadata after reading from JSon.