Improve no-list-handling in Task.parse_json