don't shadow the contents variable in json parsing