How to import google tasks?

I’ve downloaded my tasks data from google, and I was wondering if it was possible to import it into the tasks app?

I also would love to find an answer to this question! I use Google Tasks for thousands of items. I managed to export them in one file (Tasks.json), that has the following structure:

{
  "kind": "tasks#taskLists",
  "items": [
    {
      "kind": "tasks#tasks",
      "id": "[hidden]",
      "title": "2go",
      "updated": "2021-04-23T21:55:42.332575Z",
      "items": [
        {
          "notes": "Gemüse Obst Brot",
          "kind": "tasks#task",
          "created": "2021-04-23T09:32:50.216651Z",
          "id": "[hidden]",
          "title": "Einkaufen",
          "task_type": "PERSONAL_TASK",
          "updated": "2021-04-23T21:55:43.956751Z",
          "selfLink": "https://www.googleapis.com/tasks/v1/lists/[hidden]",
          "status": "needsAction"
        },
        {
          "notes": "find an answer to this question, import / export Google Tasks, migrate from Googel to Nextcloud",
          "kind": "tasks#task",
          "created": "2021-04-22T13:44:01.955203Z",
          "id": "[hidden]",
          "title": "How to import Google Tasks to Nextcloud",
          "task_type": "PERSONAL_TASK",
          "updated": "2021-04-23T21:37:02.973855Z",
          "selfLink": "https://www.googleapis.com/tasks/v1/lists/[hidden]",
          "status": "needsAction"
        },

and so on. Is there any way to import these tasks into the Nextcloud Tasks app?

I don’t know, if Nextcloud can import json calendar files. Can’t you export the tasks to an iCalendar file (*.ics)? You could then import that file to the Nextcloud calendar-app (assuming that the calendar app will import tasks as well, as they are part of RFC5545).

Unfortunately there is no way to export Google Tasks as an ics-file. Therefore this doesn’t work. I also didn’t find any kind of converter for this. Any other ideas?