What I am trying to do here is this:
$.getJSON(sampleJson.json), function(data) {}
Read data from sampleJson.json display on webpage. The displayed data is changed on a webpage submitted through an AJAX call as below:
$.ajax({type: "GET", url: "...", data: "abc" ,
Success: function(data) {}
The data is taken to server side where I used servlet to get data.
Here lies the problem, I write the data in the same sampleJson.json so the json file is updated. Now I want the changed data to get reflected on webpage on a page refresh since I am using the same sampleJson.json for display data on page load, but the webpage is not displaying the changed data.
I hope the problem is clear, is there a way to solve this issue?