Re: [Cppcms-users] Set a null value on JSON without quotes
Brought to you by:
artyom-beilis
From: Lee E. <lee...@gm...> - 2012-10-31 07:29:27
|
Any chance that cppcms under C++11 will support the syntax: my_object["name"]=nullptr; On Wed, Oct 31, 2012 at 9:09 AM, Artyom Beilis <art...@ya...> wrote: > my_object["name"]=cppcms::json::null(); > > http://cppcms.com/cppcms_ref/latest/structcppcms_1_1json_1_1null.html > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Daniel Rios <dan...@li...> > *To:* cppcms <cpp...@li...> > *Sent:* Wednesday, October 31, 2012 3:18 AM > *Subject:* [Cppcms-users] Set a null value on JSON without quotes > > Hello there ! I've need to set a null value on JSON without quotes, I've > tried the following: > > my_object["name"] = NULL; > my_object["name"] = "null"; > > On the first case I've got "my_object": 0 and then "my_object":"null" > > But I've need "my_object":null > > Any clue ? > > Daniel > > > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |