Giter Club home page Giter Club logo

jzon's People

Watchers

 avatar

jzon's Issues

interpretValue function is number check doesn't work for number in scinotation format like "1.32E4"

If the number is in sci-notation format, the following code in 
Parser::interpretValue function would fail.

for (std::string::const_iterator it = value.begin(); it != value.end(); ++it)
{
   if (!isNumber(*it))
  {
    number = false;
    break;
  }
}

It should be changed to the following code:
bool number = true;
try
{
    double d = std::stod(value);
}
catch (const std::exception& e)
{
    number = false;
}

Original issue reported on code.google.com by [email protected] on 3 Apr 2014 at 5:46

Warnings, GetCount()


MicroSoft Visual C++ 2010:

    unsigned int Object::GetCount() const
    {
        return children.size();
    }
...
    unsigned int Array::GetCount() const
    {
        return children.size();
    }

Two warnings:
1>..\third_party\Jzon\Jzon.cpp(650): warning C4267: 'return' : conversion from 
'size_t' to 'unsigned int', possible loss of data
1>..\third_party\Jzon\Jzon.cpp(840): warning C4267: 'return' : conversion from 
'size_t' to 'unsigned int', possible loss of data


On Win-64 platform:

sizeof(unsigned int) : 4
sizeof(size_t) : 8

Original issue reported on code.google.com by NtVisigoth on 2 Mar 2012 at 10:11

MSVC 2008 compilation error


Please check Jzon compilation on MS Visual C++ 2008.

Original issue reported on code.google.com by NtVisigoth on 2 Mar 2012 at 9:11

Add error handling

Add a way to handle errors from the parser when trying to parse an invalid file.

Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 7:01

Getting error in ToString method

Getting  below error 
"Unhandled exception at 0x751c969b in JParser.exe: Microsoft C++ exception: 
Jzon::TypeException at memory location 0x001ef4a4.." 
in ToString method with below json string


{
    "jsondata": [
        {
            "selector": "#username",
            "action": "fill",
            "type": "text",
            "value": "testuser"
        },
        {
            "selector": "#password",
            "action": "fill",
            "type": "password",
            "value": "admin@123"
        },
        {
            "selector": "sign",
            "action": "mouseover",
            "type": "button"
        }
    ]
}

Original issue reported on code.google.com by [email protected] on 23 Oct 2013 at 6:35

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.