It's hard to tell what went wrong from the input you gave. You may set the QT_DEBUG_PLUGINS environment variable to get the debug information. Don't hesitate to post it here, so we can continue the investigation.
Thank you @sierdzio and @JonB , your suggestions has helped me out .I had to find what are the string values to be sent through Qjsonarray and then iterate through them , followed by some string techniques to retain the order .Finally i was able to get the response's from the consumer !!!