Fixed json parse issue

Json parse issue caused by stderr being added to stdout.