I get the bloomberg response like this. I would like to parse this and get the values out to be put in a excel or csv.
Bloomberg response is a headache in kind-of XML response. Is there a simple way to directly parse into JSON ? (from object 'session' or from object 'event')
HistoricalDataResponse = {
securityData = {
security = "S X5 Comdty"
eidData[] = {
14001, 14001
}
sequenceNumber = 1
fieldExceptions[] = {
}
fieldData[] = {
fieldData = {
date = 2015-05-06
PX_LAST = 956.0
OPEN = 967.25
}
fieldData = {
date = 2015-06-06
PX_LAST = 914.25
OPEN = 956.0
}
}
}
}
This is the response. Since we have "=" instead of ":" in any json online viewer it gives error as a invalid json.