I want to convert a CellSet object (which is the result of an MDX query in SSAS) into a valid JSON format which will empower some client side charts.
Following is the sample query .
SELECT
[Measures].[Sales Amount - Reseller Sales] ON COLUMNS,
NON EMPTY
GENERATE (
[Sales Territory].[Sales Territory Country].MEMBERS,
[Sales Territory].[Sales Territory Country].CURRENTMEMBER
*
TOPCOUNT(
[Product].[Category].[Category].MEMBERS,
5,
[Measures].[Sales Amount - Reseller Sales]
)
)
ON ROWS FROM [Analysis Services Cube]
Following is the output of the query.
MDX Query Result How do i convert the above result to a JSON object? I am confused how to form a key/value pair from a multi-dimensional result set.
Thanks for any help.