JSON is only saved when necessary