Giter VIP home page Giter VIP logo

Comments (10)

UrielCh avatar UrielCh commented on June 30, 2024

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.

UrielCh avatar UrielCh commented on June 30, 2024

this feature look to be only available on json-smart 1.X and is not functionnal in 2.X...

from json-smart-v2.

jochenberger avatar jochenberger commented on June 30, 2024

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.

UrielCh avatar UrielCh commented on June 30, 2024

I found the probleme...

from json-smart-v2.

UrielCh avatar UrielCh commented on June 30, 2024

Can you test the current trunk version, and let me know if the issue is fixed?

from json-smart-v2.

jochenberger avatar jochenberger commented on June 30, 2024

Looks good to me, thanks.

from json-smart-v2.

UrielCh avatar UrielCh commented on June 30, 2024

Finaly 2.0.1 won't be released, switch to version 2.1.0 available on maven central repo

from json-smart-v2.

jochenberger avatar jochenberger commented on June 30, 2024

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.

UrielCh avatar UrielCh commented on June 30, 2024

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.

UrielCh avatar UrielCh commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.