Control json key generation/format?

classic Classic list List threaded Threaded
1 message Options
msummers msummers
Reply | Threaded
Open this post in threaded view
|

Control json key generation/format?

Is there a way to control the way Jolokia generates read response keys?

With this query:
  "request": {
    "mbean": "*:destinationType=Queue,*",
    "type": "read"
  },

on ActiveMQ I get back
  "value": {
    "org.apache.activemq:brokerName=localhost,destinationName=Queue1,destinationType=Queue,type=Broker": {
 ...
    },
    "org.apache.activemq:brokerName=localhost,destinationName=Queue2,destinationType=Queue,type=Broker": {
 ...
    }
  },
 
Something like
"value":{
  "org.apache.activemq":{
    "Broker":{
      "localhost:" {
       "Queue": {
         "Queue1:"{
...
          },
          "Queue2": {
...
         }
...

would make parsing the returned JSON simpler.

Thanks.