todoist-export icon indicating copy to clipboard operation
todoist-export copied to clipboard

Question: Consuming the exported JSON data

Open SgtPooki opened this issue 3 years ago • 3 comments

Do you have any guides / docs on how to consume the exported JSON?

Do we use https://github.com/doist/todoist-python or is there another client that can parse this data easily?

SgtPooki avatar Feb 23 '21 19:02 SgtPooki

Hi @SgtPooki , thanks for the question.

The todoist-python library is not for processing the JSON file - it's for directly interacting with Todoist data (read/write). For example, you could use it to create a similar export as todoist-export does.

What is your exact goal? "Consuming" the JSON may be as easy as opening the file in a text editor. However, it's a lot of data, so you could also look for a "JSON visualizer" like the Online JSON Viewer: paste your JSON into the Text tab and then switch to the Viewer tab:

image

Here you can click through the UI to get the structure overview. For example, all todos are under items.

For advanced insights you'll probably need to write a custom script, depending on what you're trying to achieve.

darekkay avatar Feb 24 '21 09:02 darekkay

I think @SgtPooki meant how to restore the data @darekkay

SiddharthShyniben avatar Apr 08 '21 10:04 SiddharthShyniben

I think @SgtPooki meant how to restore the data @darekkay

If that's the case, then unfortunately I am not aware of any tool. You would need to write the code yourself to import a Todoist backup.

darekkay avatar Apr 09 '21 08:04 darekkay