Re: [Cppcms-users] Set a null value on JSON without quotes
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-10-31 07:09:45
|
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 > > > |