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

Invalid JSON due to body filter #133

Closed
lukasniemeier-zalando opened this issue Sep 28, 2016 · 2 comments
Closed

Invalid JSON due to body filter #133

lukasniemeier-zalando opened this issue Sep 28, 2016 · 2 comments

Comments

@lukasniemeier-zalando
Copy link
Member

Right now the default body filter does not output valid JSON.

The replacement string should probably be "$1: \"XXX\"".

@jhorstmann
Copy link
Contributor

The pattern looks ok to me, the outer parentheses include the colon (which does not need to be escaped btw). Can you give an example of the output you are seeing?

Pattern.compile("(\"(?:access_token|open_id|id_token)\"\\s*\\:\\s*)\".+?\"")

@lukasniemeier-zalando
Copy link
Member Author

You are right, I was overwriting the pattern with a faulty one (without the : in the group).

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

No branches or pull requests

2 participants