Since I am sending the json response to a collectd plugin (curl_json), it requires the values as long/int and not string. Is there a way to have these values returned as the types specified in the mbean?
sorry, this seems to be indeed a bug. Strangely, no one really
reported this so far (probably because you have implicite conversion in
the Perl client lib). I'm going to fix this for 0.84, I will post an update
here as soon as I pushed a fix to Github.
I justed pushed a new branch 'json-typed' to Github. It contains the necessary
changes to get numbers back as numbers (same for booleans).
I also remember now, that back in 2009 I decided to return everything as String
for simplicity reasons. But obviously, although JSON is mostly typeless one
should fully support the handful of JSON types, of course.
The changes will be merged into the 0.84 release, I still need to check
all client libraries, whether they properly can handle the change and
what are the implications.
Please give it a try and let me know, whether it works for you.