Boost logo

Boost Users :

Subject: Re: [Boost-users] [property tree][json]how to create empty array?
From: Kulti (kultihell_at_[hidden])
Date: 2011-03-12 13:34:47


On Sat, Mar 12, 2011 at 6:02 PM, Julian Gonggrijp <j.gonggrijp_at_[hidden]> wrote:
> Sebastian Redl wrote:
>
>> On 12.03.2011, at 18:26, Kulti wrote:
>>
>>> It's possible to get following output from
>>> boost::property_tree::json_parser::write_json ?
>>>
>>> {
>>>  "id": "id",
>>>  "method": "test_method",
>>>  "params": []
>>> }
>>>
>>> I know how to create array with some items, but when I try to create
>>> empty array, I've get "params": ""
>>
>> Sorry, that's not possible.
>
> If you just need JSON, you might want to have a look at JsonCpp:
> http://jsoncpp.sourceforge.net/
>
> -Julian
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Thanks to all. I know about alternatives, but I'm use other parts of
boost and don't wanna have more dependencies. So I did some hack in my
case.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net