adding mismatch alert and fixing bug in json parser