Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid JSON messages #126

Merged
merged 1 commit into from
Dec 15, 2021
Merged

Fix invalid JSON messages #126

merged 1 commit into from
Dec 15, 2021

Conversation

KarstenSchnitter
Copy link
Contributor

The last version introduced a trailing comma after the fields generated by the
ContextPropertyConverter, even when there were no additional fields. This lead
to invalid JSON. This change fixes the problem.

The last version introduced a trailing comma after the fields generated by the
ContextPropertyConverter, even when there were no additional fields. This lead
to invalid JSON. This change fixes the problem.
@KarstenSchnitter KarstenSchnitter linked an issue Dec 14, 2021 that may be closed by this pull request
@KarstenSchnitter KarstenSchnitter changed the title FIx invalid JSON messages Fix invalid JSON messages Dec 15, 2021
@nicklas-dohrn nicklas-dohrn self-requested a review December 15, 2021 08:56
Copy link
Contributor

@nicklas-dohrn nicklas-dohrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KarstenSchnitter KarstenSchnitter merged commit da1a546 into master Dec 15, 2021
@KarstenSchnitter KarstenSchnitter deleted the issue/124 branch December 15, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log4j2 JsonPatternLayout might generate invalid JSON in v3.5.3
2 participants