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

Prints corrupted json #104

Closed
yarulan opened this issue Dec 19, 2018 · 4 comments
Closed

Prints corrupted json #104

yarulan opened this issue Dec 19, 2018 · 4 comments
Assignees
Milestone

Comments

@yarulan
Copy link

yarulan commented Dec 19, 2018

I log json in tests

System.out.println("ZZZZZZZZZZ: []");

In the console I get ZZZZZZZZZZ: [[].

@gitpushforcemain
Copy link

Hi there!

I noticed the same bug. For example, I have a Book object in a database, when I get the object from database and print it to the console when running tests with gradle clean test, the output is following:
Book(id=10, title=The Book of Calculation, authors=[Author(id=8, firstName=Leonardo, lastName=Fibonacci)[], genres=[Genre(id=7, genreName=Mathematics)[], year=1202, comments=[[])

Do you see these redundant empty square brackets in the output? When I remove the plugin from gradle config, then output works fine as usual.

@radarsh
Copy link
Owner

radarsh commented Feb 5, 2019

Thanks for reporting this. It must be due to the internal escaping of square brackets. Will have a look and let you know.

@gitpushforcemain
Copy link

Hi thank you for fixing this, but...

My output is still like this Book(id=1, title=Alice in Wonderland, authors=[Author(id=1, firstName=Lewis, lastName=Carrol)[], genres=[Genre(id=8, genreName=Children's Literature), Genre(id=2, genreName=Fantasy)[], year=1865, comments=[Comment(id=1, commentary=excellent)[])

Do I need to update the version of the plugin?

@radarsh
Copy link
Owner

radarsh commented Feb 8, 2019

Hi, I haven't released a new version of the plugin. Once I do that you will be able to get the bug fix.

@radarsh radarsh added this to the 1.6.1 milestone Feb 11, 2019
@radarsh radarsh self-assigned this Feb 11, 2019
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

3 participants