Handsontable example

HTML

<div id="example1"></div>

CSS

</style>
<script src="https://cdn.jsdelivr.net/npm/handsontable@7.3.0/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@7.3.0/dist/handsontable.full.min.css">

JavaScript

var myJSON = '[{"_id":1,"index": 30},{"_id":2,"index": 40},{"_id":3,"index": 22},{"_id":4,"index": 56}]'

var example = document.getElementById('example1');
var hot = new Handsontable(example, {
  data: JSON.parse(myJSON),
  colWidths: 100,
  colHeaders: true,
  rowHeaders: true
});

console.log(JSON.parse(myJSON))