CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
10/01/13 08:47 AM (12 years ago)

Uploading quizzes to scringo with json

I recently had a problem with this but the team emailed me the solution Hi Christopher, The problem is with the ',' at the end of the last element in the last child item (see below the marked line). Once I removed it (the comma) the file was loaded successfully. { "childItems": [ { "questionText": "Where can you find the calibration utility on an Android device?", "correctAnswerText": "Settings>General>Calibration", "incorrectText1": "Setting>Display", "incorrectText2": "Setting>Calibration", "incorrectText3": "Setting>Advanced>Display" }, { "questionText": "To kill a process in Windows 7 from the command line,use which of the following commands?", "correctAnswerText": "TASKKILL", "incorrectText1": "KILLTASK", "incorrectText2": "END_TASK", "incorrectText3": "TASKLIST" }, { "questionText": "Which of the following tools can be run from the command line in Windows 7 to help repair startup issues?", "correctAnswerText": "BOOTREC", "incorrectText1": "BOOTNEW", "incorrectText2": "REBOOT", "incorrectText3": "CMDBOOT" }, { "questionText": "Which of the following components should you buy to protect your computer from high voltages?", "correctAnswerText": "Surge Suppressor", "incorrectText1": "Loop Back Plug", "incorrectText2": "UPS", "incorrectText3": "Ground Fault interrupter", } ] }
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/01/13 08:49 AM (12 years ago)
Its suppose to be formatted but when I posted it didnt. The format is in the scringo documentation
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/01/13 11:50 AM (12 years ago)
you had an extra comma after Ground Fault interrupter. here is the correct { "childItems": [ { "questionText": "Where can you find the calibration utility on an Android device?", "correctAnswerText": "Settings>General>Calibration", "incorrectText1": "Setting>Display", "incorrectText2": "Setting>Calibration", "incorrectText3": "Setting>Advanced>Display" }, { "questionText": "To kill a process in Windows 7 from the command line,use which of the following commands?", "correctAnswerText": "TASKKILL", "incorrectText1": "KILLTASK", "incorrectText2": "END_TASK", "incorrectText3": "TASKLIST" }, { "questionText": "Which of the following tools can be run from the command line in Windows 7 to help repair startup issues?", "correctAnswerText": "BOOTREC", "incorrectText1": "BOOTNEW", "incorrectText2": "REBOOT", "incorrectText3": "CMDBOOT" }, { "questionText": "Which of the following components should you buy to protect your computer from high voltages?", "correctAnswerText": "Surge Suppressor", "incorrectText1": "Loop Back Plug", "incorrectText2": "UPS", "incorrectText3": "Ground Fault interrupter" } ] } use: http://jsonlint.com to find the errors!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/01/13 12:14 PM (12 years ago)
Cool thanks
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/01/13 12:16 PM (12 years ago)
Yes and they actually have the comma in the documentation, so I followed it line for line.I knew it looked wrong but I never left that out.I told them it was in the docs so hopefully no one makes the mistakes I did
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
10/01/13 04:04 PM (12 years ago)
For future referenc, you can copy and paste your jsson data at the link below and it will show you any json errors, if they exist! http://jsonlint.com/ great json, tool!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/01/13 04:07 PM (12 years ago)
Cool thank yall
 
Ofer
Android Fan
Profile
Posts: 54
Reg: Apr 06, 2013
Tel Aviv
540
like
10/06/13 12:28 AM (12 years ago)
You're right, the docs had a comma, removed now. Thanks!
 
martapp
I hate code!
Profile
Posts: 68
Reg: Jul 19, 2013
Statesboro
680
like
10/10/13 03:46 PM (12 years ago)
I've been working with a guy from Scringo and he's been helping me but gone for the weekend. He sent me an apk of my file and it works. But i try to export from my computer and it doesn't. The Facebook connecting that is. Does anyone have like 10 minutes they can spare tonight? I have teamviewer and wanted to watch you as you exam. If you show me, I'll try and make a video that will help everone. I have learned alot and want to contribute. I'm like 98% done and just need this to finish up. Anyone up tonight?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.