fix warning in json