I've got a number of process that throw data an an Azure Event Hub.
I've a Stream Analytics Job that takes each message and pushes it top a blob in a specified folder.
This all seems fin until I look at, or try and query, the data in the blob file (it is being stored, FYI, in an Azure Gen2 Storage Account). The problem is that each message pushed to the Evnet Hub is a complete JSON document.
{
"Key1": {
"SubKey1" : 99,
"SubKey2" : "A String"
},
"Key2" : "And so on"
}
However, the process of pushing the items to Blob Storage just results in
{"Key1": {"SubKey1":1, "SubKey2": "Boo"}, "Key2: Thing"}
{"Key1": {"SubKey1":2, "SubKey2": "Blah"}, "Key2: Another Thing"}
Meaning I have multiple top-level items when what I need is something more like
[
{"Key1": {"SubKey1":1, "SubKey2": "Boo"}, "Key2: Thing"},
{"Key1": {"SubKey1":2, "SubKey2": "Blah"}, "Key2: Another Thing"}
]
I know I'd doing it wring, I just don't know how to stop doing it wrong.
Am I asking to much of the Streaming Analytics Job? Should I be using something else to store my data in the blob store? Or is there a magic spell that I haven't yet found?
