var duration = 30000;
var topicName = "topic://amq.topic/?routingkey='testTopic'";

var jsonObject = {
    _tests: [
    {
      "_name": "Topic ack modes",
      "_iterations": [
        {
          "_acknowledgeMode": 1
        },
        {
          "_acknowledgeMode": 2
        },
        {
          "_acknowledgeMode": 3
        }
      ],
      "_clients": [
        {
          "_name": "producingClient",
          "_connections":[
            {
              "_name": "connection1",
              "_factory": "connectionfactory",
              "_sessions": [
                {
                  "_sessionName": "session1",
                  "_producers": [
                    {
                      "_name": "Producer",
                      "_destinationName": topicName,
                      "_maximumDuration": duration
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
      .concat(QPID.times(10,
        {
          "_name": "consumingClient-__INDEX",
          "_connections":[
            {
              "_name": "connection1",
              "_factory": "connectionfactory",
              "_sessions": [
                {
                  "_sessionName": "session1",
                  "_consumers": [
                    {
                      "_name": "Consumer-__INDEX",
                      "_destinationName": topicName,
                      "_maximumDuration": duration,
                    }
                  ]
                }
              ]
            }
          ]
        },
        "__INDEX"))
    }]
};

