Commit graph

24 commits

Author SHA1 Message Date
Felix Fietkau
ec68befdf8 blobmsg_json: use cross-platform macro for fprintf on 64-bit values
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-31 14:48:03 +02:00
Felix Fietkau
5fe5d6bd88 blobmsg_json: let blobmsg_format_json_with_cb with list == true also format arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-26 10:59:00 +02:00
Felix Fietkau
7c38e8451e blobmsg_json: fix a memleak on error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-12 20:23:23 +02:00
Felix Fietkau
7d5d10ec95 blobmsg_json: unconditionally use blobmsg data/len accessor functions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-12 20:18:12 +01:00
Jo-Philipp Wich
62c872c5e7 blobmsg_json: do not emit any whitespace when formatting without indentation 2013-11-27 18:56:04 +00:00
Felix Fietkau
bf9e09783f blobmsg_json: allow signed output of integers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-04 16:55:45 +02:00
Felix Fietkau
b8b7cac8cd blobmsg_json: do not corrupt UTF-8 strings
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-21 17:19:37 +02:00
Felix Fietkau
5d4b4655d6 blobmsg_json: fix \u escaping for control characters
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-21 17:06:34 +02:00
Felix Fietkau
b0415dc5b0 blobmsg_json: add blobmsg_add_json_from_file
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-29 12:14:48 +02:00
Felix Fietkau
0585f91c4e blobmsg_json: fix buffer growing on blobmsg json formatting 2013-01-29 23:07:10 +01:00
Felix Fietkau
a0562bff3c blobmsg: allow BLOBMSG_TYPE_UNSPEC attributes, treat them as null for JSON conversion
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-13 09:02:51 +01:00
Felix Fietkau
c247bd6c53 blobmsg_json: export blobmsg_add_object
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-06 02:15:48 +01:00
Felix Fietkau
6ae097aef9 switch blobmsg_json over to permissive license 2012-05-26 18:03:08 +02:00
Felix Fietkau
f86133b987 blobmsg: add missing endian conversions 2011-11-17 00:47:54 +01:00
Felix Fietkau
b9a4fefcd4 blobmsg_json: print int16 elements in blobmsg_format_element (patch by Luka Perkov) 2011-11-17 00:40:37 +01:00
Felix Fietkau
4609b27c8e add BLOBMSG_TYPE_BOOL as an alias for BLOBMSG_TYPE_INT8 2011-07-29 12:56:48 +02:00
Felix Fietkau
68a4ba2c82 blobmsg_json: support indenting of output data 2011-07-18 13:04:23 +02:00
Felix Fietkau
656138e5f6 remove int16, use int8 as bool instead of integer 2011-03-27 01:08:51 +01:00
Felix Fietkau
c04feb1bcc add a cast to fix 64 bit issues 2011-02-07 20:30:52 +01:00
Felix Fietkau
84448556c4 validate blobmsg attributes before converting them to json 2011-02-07 17:47:02 +01:00
Felix Fietkau
9a8a7793e2 properly null-terminate formatted json strings 2011-02-07 01:18:56 +01:00
Felix Fietkau
5499a66e24 move json formatting to the blobmsg_json library 2011-02-06 21:23:28 +01:00
Felix Fietkau
19f99f5fde add missing copyright headers 2011-02-06 16:20:57 +01:00
Felix Fietkau
ece35a9105 add a json to blobmsg parsing library 2011-02-06 16:14:15 +01:00