Comments (10)
ACCEPT_TAILLING_DATA is correcty functionnal.
if ACCEPT_TAILLING_DATA is not set JSONSmart will refused data but will accepte Spaces.
I have juste add an ACCEPT_TAILLING_SPACE, to solve your probleme
from json-smart-v2.
this feature look to be only available on json-smart 1.X and is not functionnal in 2.X...
from json-smart-v2.
if ACCEPT_TAILLING_DATA is not set JSONSmart will refused data but will accepte Spaces.
Yes, that's what json-smart 1.x used to do. 2.x accepts {"foo":"bar"}{
no matter what I set ACCEPT_TAILLING_DATA
to.
from json-smart-v2.
I found the probleme...
from json-smart-v2.
Can you test the current trunk version, and let me know if the issue is fixed?
from json-smart-v2.
Looks good to me, thanks.
from json-smart-v2.
Finaly 2.0.1 won't be released, switch to version 2.1.0 available on maven central repo
from json-smart-v2.
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);
}
from json-smart-v2.
I had juste add this test, and fix this side effect.
2014-10-20 9:25 GMT+02:00 jochenberger [email protected]:
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); }
—
Reply to this email directly or view it on GitHub
#1 (comment).
from json-smart-v2.
patched commited as non released version 1.3.2 and 2.1.1
2014-10-20 9:41 GMT+02:00 Uriel Chemouni [email protected]:
I had juste add this test, and fix this side effect.
2014-10-20 9:25 GMT+02:00 jochenberger [email protected]:
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); }
—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from json-smart-v2.
Related Issues (20)
- Integrating json-smart-v2 into OSS-Fuzz HOT 1
- depth limit of 400 when parsing JSON ! Why? HOT 9
- 2.4.9 breaks JSON parser HOT 3
- CVE-2023-1370 CWE-400 Uncontrolled Resource Consumption ('Resource Exhaustion') HOT 4
- Accessors-smart is being reported against CVE-2023-1370 HOT 10
- net.minidev.json.parser.ParseException: Malicious payload, having non natural depths. HOT 8
- can suport graalvm-native? HOT 1
- Lacking org.hamcrest.Matcher helpers to perform assertion in unit tests HOT 5
- JSONObject.merge blocks overwriting HOT 1
- Unpack dependencies is failing: Negative time HOT 1
- Parsing partial and incomplete JSON without error HOT 1
- when we release new version to fix CVE-2021-27568 HOT 26
- ArrayIndexOutOfBoundsException in parser HOT 7
- Parent pom for 2.4.4 missing in Maven Central HOT 21
- support latest asm in accessor-smart HOT 4
- Unicode characters are not correctly parsed from byte[] if default charset is not UTF-8
- Signing key is not published HOT 3
- !!!URGENT!!! Upgrading to json-smart 2.4.5 causes missing dependency `net.minidev:accessors-smart:jar:2.4.3` HOT 3
- Java record support HOT 2
- Add a constructor with size parameter on JSONArray and JSONObject classes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-smart-v2.