Remove deprecation warnings from util.json methods.