Thank you - I will definately try out lodash. Here is my json:
{
"report": {
"title": "Test Adhoc Report",
"periodInclusionTime": "2018-08-09T12:00:00Z",
"reportGenerationStarted": "2019-11-18T13:38:32.220381Z",
"reportGenerationCompleted": "2019-11-18T13:38:32.377346Z",
"metadata": {
"columnTypes": {
"assetType": "STRING",
"strategy": "STRING",
"financialAccount": "STRING",
"manager": "STRING",
"basket": "STRING",
"symbol": "STRING",
"quantity": "DOUBLE",
"nativeCost": "DOUBLE",
"bookMarketValuePercent": "DOUBLE",
"reportMarketValuePercent": "DOUBLE"
},
"columnTotalMethods": {
"assetType": "NONE",
"strategy": "NONE",
"financialAccount": "NONE",
"manager": "NONE",
"basket": "NONE",
"symbol": "NONE",
"quantity": "SUM",
"nativeCost": "SUM",
"bookMarketValuePercent": "SUM",
"reportMarketValuePercent": "SUM"
}
},
"portfolios": [
{
"portfolioName": "Control",
"groups": [
{
"groupName": "United States of America",
"data": [
{
"assetType": "EQUITY",
"strategy": "Unicorn LS",
"financialAccount": "On Hand",
"manager": "SUID12Z34V3QWKL45",
"basket": "Basket001",
"symbol": "A",
"quantity": 2100,
"nativeCost": 141800.23,
"bookMarketValuePercent": 0.6637931034482759,
"reportMarketValuePercent": 0.6637931034482759
},
{
"assetType": "EQUITY",
"strategy": "Unicorn LS",
"financialAccount": "On Hand",
"manager": "SUID12Z34V3QWKL45",
"basket": "Basket001",
"symbol": "AABA",
"quantity": 750,
"nativeCost": 1000,
"bookMarketValuePercent": 0.33620689655172414,
"reportMarketValuePercent": 0.33620689655172414
},
{
"assetType": "EQUITY",
"strategy": "Asia Growth",
"financialAccount": "On Hand",
"manager": "SUID13Z34V3QWKL12",
"basket": "Basket002",
"symbol": "AA",
"quantity": 0,
"nativeCost": 0,
"bookMarketValuePercent": 0,
"reportMarketValuePercent": 0
}
],
"total": {
"quantity": 2850,
"nativeCost": 142800.23,
"bookMarketValuePercent": 1,
"reportMarketValuePercent": 1
}
}
],
"total": {
"quantity": 2850,
"nativeCost": 142800.23,
"bookMarketValuePercent": 1,
"reportMarketValuePercent": 1
}
}
]
},
"request": {
"tenantId": 6,
"knowledgeTime": "2018-08-09T23:59:59Z",
"reportTime": "2018-08-09T12:00:00Z",
"portfolioIds": [
2
],
"currencyId": 148,
"priceSourceGroupId": 0,
"fxPriceSourceGroupId": 3,
"validationRuleCollectionId": 1,
"bookId": 0,
"adhocReport": {
"title": "Test Adhoc Report",
"columns": [
{
"columnType": "ASSET_TYPE"
},
{
"columnType": "SYMBOL"
},
{
"columnType": "FINANCIAL_ACCOUNT"
},
{
"columnType": "MANAGER"
},
{
"columnType": "STRATEGY"
},
{
"columnType": "BASKET"
},
{
"columnType": "QUANTITY"
},
{
"columnType": "NATIVE_COST"
},
{
"columnType": "BOOK_MARKET_VALUE_PERCENT"
},
{
"columnType": "REPORT_MARKET_VALUE_PERCENT"
}
],
"groups": [
{
"groupType": "NATION"
}
],
"filters": [
{
"filterType": "ASSET_TYPE",
"value": 0
}
]
}
}
}