Removed to_json default

Does not work for tasks