Questions tagged [json-spirit]

JSON Spirit is a JSON parser implementation written on C++ and based on boost::spirit

The parser is open source, it can be downloaded from CodeProject.

20 questions
0
votes
1 answer

custom == operator, does it matter which side?

JSON Spirit has a convenient operator== template< class Config > bool Value_impl< Config >::operator==( const Value_impl& lhs ) const { if( this == &lhs ) return true; if( type() != lhs.type() ) return false; return v_ == lhs.v_;…
user1382306
0
votes
2 answers

set/access jagged map values made with map

I've been shown how to create a jagged multidimensional std::map by using boost::any. However, I'm having trouble setting the values like in this answer. When I use accounts["bank"]["cash"] = 100; gcc gives this error error: no match for…
user1382306
0
votes
1 answer

comparing two std::string consts returned from functions (two json-spirit get_str()s) 1-liner

I'm using json-spirit to parse json for my ws++ server. I'm comparing strings for validation of the signup process, confirmed logins, email, password, etc. json-spirit's get_str() returns const std::string&. I've tried ==, compare, even strcmp. All…
user1382306
0
votes
1 answer

read & parse POST JSON with fastcgi++ & json-spirit

I'm using fastcgi++ for my ajax pages, parsing and encoding with json-spirit. (I'm also very new to c++) I'm having trouble figuring out how to access the post data. I cut my teeth on .net & php, and those would conveniently convert a json data…
user1382306
0
votes
2 answers

json_spirit usage issue

i was able to compile the program successfully but not able to retrieve the values from json object. i am pasting the code below , the code is simple , any help appreciated. #include #include #include using…
Ravikumar Tulugu
  • 1,702
  • 2
  • 18
  • 40
1
2