added some testing checks to json.