Modify getQueueInfo to return JSON string

This should make it easier for users to process the queue info and
display/act on it more flexibly.