fix errors in json