How do I import JSON data

0 favourites
  • 3 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • I have this JSON file below that i want to import and display the text from it to a text box in construct. I think im on the right path but not sure. I could not find any basic tutorials on this. What am i doing wrong?

    Project zip fileScreen shot

    My JSON File

    {
        "title": "This is the title",
        "introduction": "Welcome to this learning object, shithead!",
        "questions" : [
            {
                "id": "question1",
                "prompt": "What is your favorite color?",
                "answers": [
                    {
                        "id": "answer1-1",
                        "text": "red",
                        "isCorrect": false
                    },
                    {
                        "id": "answer1-2",
                        "text": "blue",
                        "isCorrect": false
                    },
                    {
                        "id": "answer1-3",
                        "text": "green",
                        "isCorrect": true
                    }
    
                ]
            },
            {
                "id": "question2",
                "prompt": "What is the color of your underwear?",
                "answers": [
                    {
                        "id": "answer2-1",
                        "text": "red",
                        "isCorrect": false
                    },
                    {
                        "id": "answer2-2",
                        "text": "blue",
                        "isCorrect": false
                    },
                    {
                        "id": "answer2-3",
                        "text": "green",
                        "isCorrect": true
                    }
    
                ]
            }
        ]
    
    }
    
    [/code:1g6t3r3j]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks Ill take a look at this tomorrow.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)