Re: [Cppcms-users] Setting JSON at the root
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-09-26 20:18:13
|
On 26.09.2013 15:14, Abhishek wrote: > Thanks for the clarification Marcel. > > And yeah, I mean ["Hello", "world", "value1", "value2"] , but mistakenly > added curly brackets (braces). I meant array only. > > So lets say, if I use: > > cppcms::json::array is assigned std::vector<any_custom_object> > > , where "any_custom_objects" trait class has been defined with json getters > and setters, will give the desired json array (of any_custom_object or > string, whatever used in vector)? Sorry, but after the 10th read, I still don't get what you want ;) What I can say to you: * I don't know if cppcms parser support any other type than object as root, I never tried * for any other information see http://cppcms.com/wikipp/en/page/cppcms_1x_json and the api at http://cppcms.com/cppcms_ref/latest/namespacecppcms_1_1json.html If you have further question, please specify it. I'm sorry I'm not able to help you atm. |