Code Monkey home page Code Monkey logo

rsjp-cpp's People

Contributors

subh83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rsjp-cpp's Issues

Nice lib, but not very 'const correct'!

Hi,

I like this lib a lot, my new favourite json parser!

If I had to make any complaint it would be that it is not very 'const correct'. It doesn't make use of any const methods, which means you can't pass const RSJresource objects around easily/at all.

But that's cool, I can live with that and it's not a huge problem for what I do, so I think it's now my default json lib of choice!

I definitely appreciate how lightweight it is so perhaps staying away from const correctness is worth it in this case?

Bye,
Mark

Not able to parse nested jsons properly.

_s = "{"type":"message","data":{"id":4,"data":"sumanth"}}"

RSJresource my_json(s);
std::cout << my_json["data"]["data"].asstd::string() << std::endl;_

The above lines of code is giving the following output:
sumanth"}}

It is not parsing the json properly. The expected output is sumanth

Is there another way to do the same?

Wrong include files

Compilation goes wrong if not fstream is in the include path (gcc c++14 Linux)

micro optimisation?

I tried changing the access operator
RSJresource& RSJresource::operator[] (std::string key)
to
RSJresource& RSJresource::operator[] (const std::string& key)

I believe that some string creation and copying is now left out? Nothing seems to have broken, at least not on my tests.

Cheers
[email protected]

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.