How do I import JSON data

Get help using Construct 2

Post » Thu Feb 27, 2014 7:02 pm

Message: Jjanikowski is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
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
Image

My JSON File
Code: Select all

{
    "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
                }

            ]
        }
    ]


}

B
8
S
1
Posts: 62
Reputation: 660


Post » Thu Feb 27, 2014 8:49 pm

Thanks Ill take a look at this tomorrow.
B
8
S
1
Posts: 62
Reputation: 660


Return to How do I....?

Who is online

Users browsing this forum: Rudi55 and 5 guests