How to create json from infotable using ToJson method?
Dear Team,
I am getting tabular data after calling below code as result output is JSON.
var params = {
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
sourceTags: undefined /* TAGS */,
endDate: undefined /* DATETIME */,
query: undefined /* QUERY */,
source: undefined/* STRING */,
startDate: undefined /* DATETIME */,
tags: undefined /* TAGS */
};
// result: INFOTABLE
var result2 = Things["PumpValueStream"].QueryStreamEntriesWithData(params);
var params = {
table: result2 /* INFOTABLE */
};
// result: JSON
var result = Resources["InfoTableFunctions"].ToJSON(params);

