Decoding Exported Data by Parsing conversations.json and/or chat.html

After exporting the chatgpt data, I would like to recreate the conversations similar to what is available in chat.html. It is not immediately clear to me how the mapping is structured in conversations.json. Is this documented somewhere?

I also tried to copy/paste chat.html into ChatGPT to see if I could get ChatGPT to figure out what the html code was doing, but I got a violation of terms acknowledgement window. Does anyone know why that might be?

2 Likes

Nevermind on part 2. It was related to having a really long line of json data apparently.

Finally got it working. Here is the conversation:

https://chat.openai.com/share/761c4e0c-b4a8-4c1b-b4bf-3ce32e9e3602

I was able to eventually get ChatGPT to get it. I didn’t have to understand much of the code at all, but it did take a few hours to navigate the straying, etc.

The code at the bottom seems to work ok.

1 Like