added JSON output to final discovery - also fixed tests since we're no longer sending queue output back, but the actual JSON library data itself