blobmsg_json: support json_type_null in blobmsg_add_json_element()
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Feb 2016 21:51:41 +0000 (22:51 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Feb 2016 22:30:32 +0000 (23:30 +0100)
commitf43da92dd7b80d955de751c2cc53525447870d96
treed8e3c439e057b178797517bec3ec268867b6f5dc
parent0c2fbbca80a242280e5bb8b079184479c9abfa6f
blobmsg_json: support json_type_null in blobmsg_add_json_element()

We already serialize BLOBMSG_TYPE_UNSPEC as "null" so represent JSON null
values as blob attribute type unspec with payload size zero.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
blobmsg_json.c