I am extracting a large quantity of data from a Database in JSON format. 3 Million + rows, the resulting text file weighs ~4GB. I wish to split the resulting JSON file into one JSON file per "DATE_JR".
The schema looks like this:
{
"ID": "ABC000011512221",
"DATE_JR": "2017-04-01",
"TYPE": "Balloon",
"XELL": "AB-123",
"QRSX": "QRSXA",
"CAT1": "1st one",
"CAT2": "2nd one",
"CAT3": "3rd one",
"CODE_MUK": "Some Code",
"DATE_HR": "2017-04-01 19:27:38",
"GEO_LONG": "-87.5060503076923",
"GEO_LAT": "62.2202423846154"
}
The Data is Ordered by ID, which is also an ID generated in chronological order, so DATE_JR and DATE_HR also ordered.
I saw this code : https://stackoverflow.com/a/41505542/4254078 from @Ansgar Wiechers which looks close to what I need but not quite.
Some PowerShell Guru could shed some light?