I have a json like
{
"230":{"startDatetime":"2017-07-21T07:00:00","endDatetime":"2017-08-07T06:59:59"},
"232":{"startDatetime":"2017-07-21T07:00:00","endDatetime":"2017-08-07T06:59:59"}
}
and i need to convert to
[
{"location":"230","startDatetime":"2017-07-21T07:00:00","endDatetime":"2017-08-07T06:59:59"},{"location":"232","startDatetime":"2017-07-21T07:00:00","endDatetime":"2017-08-07T06:59:59"}
]
Can we do this in logstash?