I have this json from third party API, which isn't under my control-
https://pastebin.com/WNZZWXV7
(contains stripped down single set)
The 2 values I want in a row are like this-
Column 1 = response.listResults[0].listInstrument.instrumentBasic.symbol ("SAREGAMA" in the example)
Column 2 = response.listResults[0].listColumns[0].dataValue.doubleValue (823 in example)
This is my current code-
<table id="example" class="display" style="width:100%"></table>
<script>
$(document).ready(function() {
$('#example').DataTable( {
"ajax": '..private url',
"columns": [
{ "title": "Stock", "data": "response.listResults.listInstrument.flagged", "searchable": true, "visible": true },
{ "title": "Price", "data": "response.listResults.listColumns[0].dataValue.doubleValue" }
]
} );
} );
</script>
I went through examples here - https://datatables.net/examples/ajax/ but not able to sort it out. Any help or pointers are appreciated.
