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

Top level JSON #950

Open
AkselAllas opened this issue May 3, 2023 · 0 comments
Open

Top level JSON #950

AkselAllas opened this issue May 3, 2023 · 0 comments

Comments

@AkselAllas
Copy link

So using LoggingEventCompositeJsonEncoder I can do stuff like:

    <pattern>
      <pattern>{ "fieldName": "#tryJson{%message}" }</pattern>
    </pattern>

Generates { fieldName: [NESTEDJSONHERE] }

But imagine that I could generate a json at the top level instead of nested one level deep? e.g.:

    <pattern>
      <pattern>{ #tryJson{%message} }</pattern>
    </pattern>

generating { [JSONHERE] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants