JSON Newline Delimited question

OK so I am trying to do an event breaker to break some JSON data that comes in. Each event will start with

{
“data”: {
—JSON DATA HERE—
}
}

The problem is that the last 2 curly brackets have a line break as shown below

image

This breaks the JSON and makes the last curly bracket a separate event

Any help getting this to not break like that would be great.

What type of event breaker are you using? I’d recommend regex based and break on something like (?=\n\})\n

yeah that works but it does not take account that last } which is part of the complete JSON event

I would use something like this in the Event Breaker Regex: (?<=}$).(?=^{)

Screen Shot 2022-05-25 at 7.34.11 AM

1 UpGoat