This is what your array should look like:
{
"data":[{'company':'1','TG_NAME':'1','activeGroup':'1'},{'company':'2','TG_NAME':'2','activeGroup':'2'}],
"totalRows":2,
"totalPages":1,
"page":1
}
And you should call addJSONData like this:
jQuery('#terminalGroups')[0].addJSONData( result );