Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
10/13/13 12:15 AM (12 years ago)

Parsing error (I Think)

2013-10-13 18:09:31.094 app[30448:c07] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Unrecognised leading character" UserInfo=0xae7d380 {NSLocalizedDescription=Unrecognised leading character}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xae7d3c0 {NSUnderlyingError=0xae7d3a0 "Unrecognised leading character", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: childItems" UserInfo=0xae7d400 {NSUnderlyingError=0xae7d3e0 "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=0xae7d440 {NSUnderlyingError=0xae7d420 "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=0xae7d480 {NSUnderlyingError=0xae7d460 "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=0xae7d520 {NSUnderlyingError=0xae7d4e0 "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=0xae7d5a0 {NSUnderlyingError=0xae7d540 "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=0xae7d5e0 {NSUnderlyingError=0xae7d5c0 "Object value expected for key: BT_items", NSLocalizedDescription=Object value expected for key: BT_appConfig}" ) 2013-10-13 18:09:31.095 app[30448:c07] BT_application: validateApplicationData: ERROR: There was a problem parsing some configuration data. Please make sure that it is well-formed. 2013-10-13 18:09:31.095 app[30448:c07] app_appDelegate: error parsing application data. 2013-10-13 18:09:31.095 app[30448:c07] app_appDelegate: hideProgress 2013-10-13 18:09:31.113 app[30448:c07] BT_fileManager: deleteFile: cachedAppConfig.txt 2013-10-13 18:09:31.113 app[30448:c07] app_appDelegate: applicationDidBecomeActive 2013-10-13 18:09:31.613 app[30448:c07] app_appDelegate: reportToCloud 2013-10-13 18:09:31.613 app[30448:c07] app_appDelegate: not reporting to cloud, no dataURL or reportToCloudURL So After I clean and build my app this is what happens when i go to test it. I went to JSONlint.com to test for a parsing error and it told me "Parse error on line 178: ... , -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['" i checked line 178 and it looks identical to the other 300 groups of co ords i have put in. Any help as always i am very grateful guys!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/13/13 12:24 AM (12 years ago)
Hi, Can you show us your json code ? Best regards, Danny
 
Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
like
10/13/13 12:29 AM (12 years ago)
Hi Danny, Where will I find the "JSON" code. the code above is straight from the Config.txt
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/13/13 12:42 AM (12 years ago)
Hi Nodderz, what you are showing is the log file and not the JSON data. In your control panel ther is a button called "JSON data". Clicking on this will show you your json data. This jason data should also be in your BT_config.txt. Did you also drag all the necessary folders into your xcode project (as stated in the downloaded source instructions.pdf)? Best Regards, Danny
 
Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
like
10/13/13 12:55 AM (12 years ago)
I have added all the folders and additional files needed for the app, sorry as you can tell im not very knowledgable in the xcode/app dev department yet, where is the JSON data button? Thanks again
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/13/13 12:57 AM (12 years ago)
OK, JSON data button is in your control panel (buzztouch.com or selfhosted - where you create your app). Best Regards, Danny
 
Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
like
10/13/13 01:02 AM (12 years ago)
okay so i found the JSON code and used JSONlint.com again and it was validated without errors. the simulator is saying the configuration data for this application is not available when i try to load it. do you want me to paste ALL my JSON data? its pretty big haha
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/13/13 01:04 AM (12 years ago)
OKay, If jsonlint says it's okay then this shouldn't be the problem. Try to copy the json data from the control panel into the BT_config.txt -->save-->clean-->build. Best Regards, Danny
 
Nodderz
Aspiring developer
Profile
Posts: 38
Reg: Dec 02, 2012
Adelaide
2,230
like
10/13/13 01:07 AM (12 years ago)
okay thanks for helping me, its working again! cheers mate
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/13/13 01:09 AM (12 years ago)
Hi Nodderz, Great!! We all have to learn things!! Best Regards, Danny
 

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.