[ https://issues.apache.org/jira/browse/ARTEMIS-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16369288#comment-16369288 ]
Justin Bertram commented on ARTEMIS-1668: ----------------------------------------- I'm not sure how much motivation there will be to fix this since it's on 1.x. Certainly if it's a valuable fix for you then I'd recommend you submit a PR. > The list of subscribers does not return json array of consumers > --------------------------------------------------------------- > > Key: ARTEMIS-1668 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1668 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.5.5 > Reporter: Yeray Borges > Priority: Major > > Output of {{listAllSubscriptionsAsJSON}}, {{listDurableSubscriptionsAsJSON}}, > {{listNonDurableSubscriptionsAsJSON}} contains attribute {{consumers}}. The > json produced by these operations contains {{consumers}} value escaped and > presented as a plain String. For example: > {noformat} > [ > { > "queueName": > "b7348eab-e13f-437b-a4ca-1e6f2be490c22.c740ec86-5cbe-4b7a-8ee5-073a746f7c3a2", > "clientID": "b7348eab-e13f-437b-a4ca-1e6f2be490c22", > "selector": null, > "name": "c740ec86-5cbe-4b7a-8ee5-073a746f7c3a2", > "durable": true, > "messageCount": 0, > "deliveringCount": 0, > "consumers": > "[{\"consumerID\":0,\"connectionID\":\"4361e1bc-0c08-11e8-9e9e-a860b61ba3b9\",\"sessionID\":\"43622fe0-0c08-11e8-9e9e-a860b61ba3b9\",\"browseOnly\":false,\"creationTime\":1518009026461}]" > } > ] > {noformat} > If some external tooling reads value of attribute {{consumers}}, it can not > be treated like a Json array of objects. It must be handled as a regular > String instead. -- This message was sent by Atlassian JIRA (v7.6.3#76005)