resetting the json object back to it's original state