Load json into handsontable

Tags: #<Tag:0x00007f8b2b042230>

Hi,

How to load the data from json into handsontable? I referred
" https://handsontable.com/docs/7.1.1/tutorial-load-and-save.html " this content, but didn’t help me. I am getting errors and not able to load json data.

$container.handsontable({
startRows: 8,
startCols: 6,
rowHeaders: true,
colHeaders: true,
crossDomain: true,
minSpareRows: 1,
contextMenu: true,
afterChange: function (change,source)
{
if (source === ‘loadData’)
{
return;
}
if ($parent.find(‘input[name=autosave]’).is(’:checked’))
{
clearTimeout(autosaveNotification);
$.ajax(
{
url: “json/fmea.json”,
dataType: “json”,
type: “GET”,
data: change,

    complete: function (data) 
	{
      $console.text('Autosaved (' + change.length + ' ' +
        'cell' + (change.length > 1 ? 's' : '') + ')');
      autosaveNotification = setTimeout(function () 
	  {
        $console.text('Changes will be autosaved');
      }, 1000);
    }
  });
}

}
});
Can this be fixed?

Hey @chandan09121995

can you share a demo with me on support@handsontable.com?