I'm using the following code to merge all json objects using NewtonSoft.
var result = input.SelectMany(d => d.Select(kvp => kvp.Value))
.Select((value, index) => new {index, value})
.ToDictionary(iv => iv.index, iv => iv.value);
However I want to change it to json array without loosing the order. Using "toArray" just adds each individual json object to json array. How do I add only the values to the json array?
the value of result is ,
{"0":"a","1":"b","2":"c","3":"d","4":"e"}
im trying to get the output to be [a,b,c,d,e]
sequentially without loosing the order of the index as in the key.