Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
10/08/13 11:56 AM (12 years ago)

Configuration data invalid

I already checked that the data config has a valid JSON, but I am still getting this error when I try to run my app. Here are the errors that I get: 2013-10-08 14:53:38.384 PrepCeneval[777:a0b] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=5 "Unescaped control character '0x9'" UserInfo=0xd302460 {NSLocalizedDescription=Unescaped control character '0x9'}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: questionText" UserInfo=0xd3024a0 {NSUnderlyingError=0xd302480 "Unescaped control character '0x9'", NSLocalizedDescription=Object value expected for key: questionText}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xd302600 {NSUnderlyingError=0xd3024c0 "Object value expected for key: questionText", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: childItems" UserInfo=0xd302640 {NSUnderlyingError=0xd302620 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: childItems}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xd302390 {NSUnderlyingError=0xd302370 "Object value expected for key: childItems", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_screens" UserInfo=0xd302350 {NSUnderlyingError=0xd3023b0 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: BT_screens}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xd3022f0 {NSUnderlyingError=0xd3022d0 "Object value expected for key: BT_screens", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_items" UserInfo=0xd302330 {NSUnderlyingError=0xd302310 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: BT_items}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_appConfig" UserInfo=0xd302230 {NSUnderlyingError=0xd302210 "Object value expected for key: BT_items", NSLocalizedDescription=Object value expected for key: BT_appConfig}" ) 2013-10-08 14:53:38.385 PrepCeneval[777:a0b] BT_application: validateApplicationData: ERROR: There was a problem parsing some configuration data. Please make sure that it is well-formed. 2013-10-08 14:53:38.385 PrepCeneval[777:a0b] PrepCeneval_appDelegate: error parsing application data. Please help!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/08/13 02:06 PM (12 years ago)
@Edwin_raimond: Welcome to Buzztouch! Have you pasted your configuration data into this http://jsonlint.com? Jake
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/08/13 08:14 PM (12 years ago)
First -- Follow Jake's advice, check your JSON in the http://jsonLint.com web site. If JSONLint does not find any problem, then try this check: Download TextWrangler, it is a extremely useful text editor for the Mac. Make a new file. Copy-paste your JSON data into that new file within Text Wrangler. In the TEXT menu, select "Zap Gremlins" Tell it to delete everything and to delete the zapped characters. Tell it to Zap Then FILE menu, Close Document (CMD-W keys) If you are asked to "Save the changes", then it found some invisible characters in the JSON that was causing the 0x9 value to be inserted. Now comes the tough part, to find that 0x9 value. EDIT menu and undo the Zap. Do the ZAP again, but this time, tell it to insert the circle-character in place of the bad character. Then scroll through your file to find that location. You'll know into which Screen you had inserted that bad character through the Web Control Panel. Go into that screen and erase that field and re-type it all over again. Let us know how you get along! - Niraj
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
10/09/13 12:19 PM (12 years ago)
Thank you for your responses. I had checked the JSON in the json website before posting this question. Now I downloaded Text Wrangler and followed Niraj's instructions. I am creating a quiz in Spanish and it appears that all the stress marks are changed by Text Wrangler when looking for Gremlins... Does that mean that I have to eliminate all kinds of stress marks in my questions? Is there other way to fix this problem? I am trying to build a Spanish grammar and spelling quiz and it wouldn't make much sense if the quiz has spelling mistakes (no stress marks). Thanks again!
 

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.