Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
OS is WINDOWS7 64bit

Original comment by [email protected] on 10 Jul 2014 at 10:54

from json-smart.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
{ "param1:"sample"": "value1", "param2": "value2" }

Even this is taken as valid but  actually invalid

Original comment by [email protected] on 10 Jul 2014 at 11:37

from json-smart.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Tested with the curent version 2.0 and 1.3, an exception are throws.


public class TestIssue46 extends TestCase {
    public void testEmptyStrict() throws Exception {
        String s;
        s = "{ \"param1:\"sample\"\": \"value1\", \"param2\": \"value2\" }";
        s = "{ \"param1\'\': value1, \"param2\": \"value2\" }";
        JSONObject o = null;
        try {
            o = (JSONObject) JSONValue.parseStrict(s);
        } catch (Exception e) {
            // should be invalid
        }
        assertEquals(o, null);
    }
}

Original comment by uriel.chemouni on 15 Jul 2014 at 11:30

  • Changed state: Invalid

from json-smart.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
{ \"param1\": \"value1\", \"param2\": \"value2\" }\\\\\\

But still this does not throw any exception. This is taken as valid.

Original comment by [email protected] on 16 Jul 2014 at 11:03

from json-smart.

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.