$data = json_decode(file_get_contents("data.json"), true); // старый код
$data = json_decode(file_get_contents("js/data.json"), true); // а нужно так
function arr_val() {
var $value = {};
$('form').find('input, textarea').each(function() {
$value[this.id] = $(this).val();
});
$("form").on("input",function(e){
if ($value[e.target.id] != $("#"+e.target.id).val()) {
console.log("Есть");
} else {
console.log("Нет");
}
});
}
arr_val();