Re: [LEDE-DEV] [PATCH libubox] blobmsg_json: add new functions blobmsg_format_json_value*

2016-06-03 Thread Matthias Schiffer
On 06/03/2016 11:05 AM, John Crispin wrote: > > > On 01/06/2016 22:27, Matthias Schiffer wrote: >> The current blobmsg_format_json* functions will return invalid JSON when >> the "list" argument is given as false (blobmsg_format_element() will >> output the name of the blob_attr as if the value i

Re: [LEDE-DEV] [PATCH libubox] blobmsg_json: add new functions blobmsg_format_json_value*

2016-06-03 Thread John Crispin
On 01/06/2016 22:27, Matthias Schiffer wrote: > The current blobmsg_format_json* functions will return invalid JSON when > the "list" argument is given as false (blobmsg_format_element() will > output the name of the blob_attr as if the value is printed as part of a > JSON object). > > To avoid

[LEDE-DEV] [PATCH libubox] blobmsg_json: add new functions blobmsg_format_json_value*

2016-06-01 Thread Matthias Schiffer
The current blobmsg_format_json* functions will return invalid JSON when the "list" argument is given as false (blobmsg_format_element() will output the name of the blob_attr as if the value is printed as part of a JSON object). To avoid breaking software relying on this behaviour, introduce new f