Modified result dict management and json encoding to get the output from
the celery task.