I'm trying to parse data by dates in a JSON and having problems.
Essentially, I want to grab events that are between two dates/times, but am having virtually no luck doing this. I know there are JSON parsers out there that I could use, but most that I've found will extract a field.
I don't want to extract a field - I want the raw JSON for all events that are after a certain date.
So in my data below, I want to grab all events (all 4 rows of each JSON entry) that are after 2017-01-14 2:00am. How can I accomplish this?
{
"_id": "58816d03e4b00654468d2781",
"datetime": "2017-01-03T05:23:02Z",
"msg": "foo1"
"msg2": "foo2"
},
{
"_id": "58816d03e4b00654468d2963",
"datetime": "2017-01-14T01:50:52Z",
"msg": "foo1"
"msg2": "foo2"
},
{
"_id": "58816d03e4b00654468d3068",
"datetime": "2017-01-16T13:41:46Z",
"msg": "foo1"
"msg2": "foo2"
},
{
"_id": "58816d03e4b00654468d3068",
"datetime": "2017-01-20T21:16:40Z",
"msg": "foo1"
"msg2": "foo2"
},