Skip to main content
Filling your video through JSON
Elien Kersjes avatar
Written by Elien Kersjes
Updated over a year ago

Note: Besides JSON, you can also import your interactions through our API. Check out our API documentation about this.

It's possible to use JSON to export and import your interactions. JSON is a standard text-based format to exchange and store data.

How to use JSON in general

Step 1. Open your video in the editor

Step 2. Click on Settings and export your interactions to JSON:

Step 3. Make your changes (see examples below)

Step 3. Import the adjusted JSON file in the same video or make a completely new one


Examples

Below, you'll learn about the three most common situations in using JSON import/export:

Translate all interactions at once

Step 1. Export the interactions to JSON (see above)

Step 2. Use ChatGPT to translate the texts in every interaction for you, using (a variation of) this prompt:

In the following file translate all texts that are behind a "text": tag a "feedback_screen_correct_answer_feedback" tag a "feedback_screen_incorrect_answer_feedback" tag or a "feedback_screen_general_feedback". Translate from English to Dutch.

Step 3. Import the new JSON file to your interactive video


Change a specific text in every interaction

Step 1. Export the interactions to JSON (see above)

Step 2. Open the file in a text editor such as Notepad++

Step 3. Press ctrl+h to replace certain texts in all interactions

Step 4. Import the new JSON file to your interactive video


Add predefined questions with AI

Step 1. Make a video with one multiple-choice question and if you want, any other interactions

Step 2. Export the interactions to JSON (see above)

Step 3. Go to your video settings and the Subtitles tab

Step 4. Let hihaho generate a transcription for you (it generates subtitles but you can also use this to tell AI about the content of your video)

Step 5. Put the transcription in ChatGPT and ask it to generate an x number of multiple-choice questions that belong to the content

Step 6. Give ChatGPT the current JSON file and ask it to add the generated questions into this format. Also, give the timestamps where the questions should be.

Step 7. Import the new JSON file to your interactive video

Did this answer your question?