Open FarmersWrap opened 9 months ago
Sounds reasonable! Would you mind opening a PR?
No problem! But I realized the decoder highly depends on JSONTokener, you wouldn't want to double-check the json string nor change the logic of logging JSONTokener error message. Then I changed the behavior of the logger in the test case. Please refer to the PR.
Is your feature request related to a problem? Please describe. When I test the the project. There is a test in ParserTest.java:68. It has side effect that will print following message to err.
Describe the solution you'd like A clear and concise description of what you want to happen. This is an error thrown by JSONTokener. It is not relevant to this project. And all the behaviors are under control. It is better to avoid the error message.
I think it would be better to change the decodeString function at io.socket.parser.IOParser$Decoder.decodeString(IOParser.java:183) to check the validity of the json string.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Change the testcase
Additional context Add any other context or screenshots about the feature request here.