-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
net.minidev.json.parser.JSONParser.ACCEPT_TAILLING_DATA seems to have no effect #1
Comments
ACCEPT_TAILLING_DATA is correcty functionnal. I have juste add an ACCEPT_TAILLING_SPACE, to solve your probleme |
this feature look to be only available on json-smart 1.X and is not functionnal in 2.X... |
Yes, that's what json-smart 1.x used to do. 2.x accepts |
I found the probleme... |
Can you test the current trunk version, and let me know if the issue is fixed? |
Looks good to me, thanks. |
Finaly 2.0.1 won't be released, switch to version 2.1.0 available on maven central repo |
No, it's not working properly, test case: public void testTaillingDataWithSpaceAllowed() throws Exception {
String s = "{\"t\":0}{";
MustThrows.testInvalidJson(s, JSONParser.MODE_STRICTEST | JSONParser.ACCEPT_TAILLING_SPACE, ParseException.ERROR_UNEXPECTED_TOKEN);
} |
I had juste add this test, and fix this side effect. 2014-10-20 9:25 GMT+02:00 jochenberger notifications@github.com:
|
patched commited as non released version 1.3.2 and 2.1.1 2014-10-20 9:41 GMT+02:00 Uriel Chemouni uriel.chemouni@gmail.com:
|
Trailing data is accepted regardless of what I set the
net.minidev.json.parser.JSONParser.ACCEPT_TAILLING_DATA
setting to.net.minidev.json.parser.JSONParserBase.checkTaillingData
is initialized but never used.The text was updated successfully, but these errors were encountered: