Boost logo

Boost :

Subject: Re: [boost] Variadic append for std::string
From: Richard Hodges (hodges.r_at_[hidden])
Date: 2017-01-19 13:26:28


> Except that "[ a, b, c ]" is not valid JSON.

Youre right, a JSON adapter would need to enquote strings, write bools as
alphas and have access to an ADL-aware function to turn objects into tuples
of NVP generators. That shouldn't be too much of an issue.

On 19 January 2017 at 18:07, Bjorn Reese <breese_at_[hidden]> wrote:

> On 01/19/2017 02:53 PM, Richard Hodges wrote:
>
> join(wrapped_sequence(range, "[", "]", ",", " ")) -- results in "[ a,
>> b, c ]" or "[ ]" if the sequence is empty.
>>
>> The last one would allow automatic generation of JSON...
>>
>
> Except that "[ a, b, c ]" is not valid JSON.
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman
> /listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk