Re: [Cppcms-users] Small issues in cppcms 1.x.x
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-04-08 20:43:30
|
Ok I've got confuses with data on json.org site. > 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; > The string "Hello World" is not valid json. See RFC-4627 http://www.ietf.org/rfc/rfc4627.txt Json is either Object or Array, single values is not valid JSON. I reverted incorrect changes. Json parses should not accept such strings. Artyom |