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

Jo-Philipp Wich jo at mein.io
Thu Jun 30 08:03:45 PDT 2016


On 06/27/2016 08:50 AM, 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 breaking software relying on this behaviour, introduce new
> functions which will never print the blob_attr name and thus always
> produce valid JSON.
> 
> Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>

Acked-by: Jo-Philipp Wich <jo at mein.io>



More information about the Lede-dev mailing list