Re: [Cppcms-users] Small issues in cppcms 1.x.x
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-03-15 07:41:11
|
Hello Daniel > I know that is a pre-release version, but I write this report for help. Thanks, this is what exactly I need. > 1) I need add #include <stdint.h> in "session_posix_file_storage.cpp" > for build the framework. Thanks, Fixed in svn > 2) Is function request().http_authrization() correct spelled (whitout > "a")? Thanks, Fixed in svn > 3) Json parser. The json parser fail to parse a simple string. I expect > that the following code snippet print "ok", but I get "err". > > string json_str("\"Hello World\"); > cppcms::json::value v; > stringstream ss; > ss << json_str; > > v.load(ss,true); > if( v.type() == cppcms::json::is_string ) { > cout << "ok" << endl; > } > else if (v.type() == cppcms::json::is_undefined ) { > cout << "err" << endl; > } > > Thanks. Ok, good point, my bad. You made me re-read JSON specs and I figured out that I missed something. I assumed that valid JSON is either object or array, but according to spec sinlge value is valid JSON as well. I'll fix it ASAP. Thank you. Artyom |