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

Convert list configuration values to Json format #6

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

51-code
Copy link
Contributor

@51-code 51-code commented Dec 18, 2024

Fixes #5

Lists were represented with the String gotten from List's toString() method. To allow for easier parsing, JSON format is applied instead. Gson library is used for this.

Tests concerning Lists had to be reworked as the results are now different. I added assertions to see that the values can be properly parsed with Gson back to the corresponding Java values as well.

@51-code 51-code added bug Something isn't working feature Existing feature labels Dec 18, 2024
@51-code 51-code requested a review from eemhu December 18, 2024 11:43
@51-code 51-code self-assigned this Dec 18, 2024
Copy link

@eemhu eemhu left a comment

Choose a reason for hiding this comment

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

Is there a specific reason why gson is used instead of jakarta?

@51-code
Copy link
Contributor Author

51-code commented Dec 19, 2024

Will change to use Jakarta.

@51-code 51-code requested a review from eemhu December 19, 2024 11:15
@51-code 51-code requested a review from kortemik January 7, 2025 07:41
@kortemik kortemik merged commit a59ae3b into teragrep:main Jan 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature Existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Represent Lists as Json String
3 participants