What I want to do is grab a bunch of different sets of date:value pairs, join them together based on the date, and fill in missing values with null if the dates don't match.
Like this as input:
{"series1":[{'date1':4},{'date2':2},{'date3':6}]}
{"series2":[{'date1':5},{'date2':3},{'date3':4},{'date4':6}]}
{"series3":[{'date2':1},{'date4':9}]}
to get:
{"output":[{'date1':[4,5,]},{'date2':[2,3,1]},{'date3':[6,4,]},{'date4':[,6,9]}]}
Or looking at it another way, I want to be able to organize data like this:
No matter how many series I'll have, and no matter where any gaps may be.
I found this question: SQL style JOIN on JSON data, but I'm not sure how to extend that solution to what I need. I could add some extra logic and then run it n-1 times if that's what has to be done, but it really feels like something much simpler and elegant would exist for this purpose.