Code

curl_json plugin: Be more clever building the type instance.
authorFlorian Forster <octo@collectd.org>
Sat, 27 Aug 2011 19:29:42 +0000 (15:29 -0400)
committerFlorian Forster <octo@collectd.org>
Sat, 27 Aug 2011 19:32:45 +0000 (15:32 -0400)
commitaadd789f6b154f24ea8af09c59a7d98512873806
tree64e63b7e34ffe6024250b9672fcf83cea54fce41
parentf4c495df1843f5e87f16d122fdc78531ceb2773d
curl_json plugin: Be more clever building the type instance.

When the key of the parent object is empty, don't use it. The previous code led
to type instances starting with a dash, e.g. "-foo".

Also, be more verbose when unable to resolve types.

Change-Id: Ib5f55efe1acc1e819ac3189b6780a4e998bf9c9f
src/curl_json.c