Graham90978
Aspiring developer
Profile
Posts: 23
Reg: Jul 31, 2014
Dublin
230
09/26/15 02:23 PM (9 years ago)

JSON error that I can't detect

Hi folks, I am testing a version of my app, and want to include the reminder list app. When I add this plugin, I get the following errors: 2015-09-26 22:14:16.271 project365[24577:884107] BT_loadConfigDataViewController: downloadFileStarted: starting download... 2015-09-26 22:14:17.037 project365[24577:884107] BT_fileManager: saveTextFileToCacheWithEncoding: "cachedAppConfig.txt" encodingFlag: -1 2015-09-26 22:14:17.038 project365[24577:884107] BT_loadConfigDataViewController: downloadFileCompleted 2015-09-26 22:14:17.039 project365[24577:884107] BT_fileManager: saveTextFileToCacheWithEncoding: "cachedAppConfig.txt" encodingFlag: -1 2015-09-26 22:14:17.039 project365[24577:884107] BT_application: validateApplicationData 2015-09-26 22:14:17.040 project365[24577:884107] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=9 "Trailing comma disallowed in object" UserInfo=0x7fdb63001630 {NSLocalizedDescription=Trailing comma disallowed in object}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0x7fdb63002b80 {NSLocalizedDescription=Expected value while parsing array, NSUnderlyingError=0x7fdb63002ae0 "Trailing comma disallowed in object"}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_screens" UserInfo=0x7fdb63002bf0 {NSLocalizedDescription=Object value expected for key: BT_screens, NSUnderlyingError=0x7fdb63002bc0 "Expected value while parsing array"}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0x7fdb63006370 {NSLocalizedDescription=Expected value while parsing array, NSUnderlyingError=0x7fdb63006340 "Object value expected for key: BT_screens"}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_items" UserInfo=0x7fdb63006410 {NSLocalizedDescription=Object value expected for key: BT_items, NSUnderlyingError=0x7fdb630063e0 "Expected value while parsing array"}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_appConfig" UserInfo=0x7fdb60dd8f10 {NSLocalizedDescription=Object value expected for key: BT_appConfig, NSUnderlyingError=0x7fdb60dd8eb0 "Object value expected for key: BT_items"}" ) 2015-09-26 22:14:17.055 project365[24577:884107] BT_application: validateApplicationData: ERROR: There was a problem parsing some JSON data. Please make sure that it is well-formed. But I really don't know where to find them. I have looked at the config file, and it seems ok. Could they be somewhere else? Thank you in advance Edit: I realised theres an error in the config file, an extra comma. I have fixed this on my downloaded version, but as it remotely accesses buzz touch the error is always there. Can i modify my config file on the buzz touch servers? Graham
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/26/15 04:25 PM (9 years ago)
Well, it shouldn't be there. 'Where' is it located, because (and I'm just guessing here) that it can be removed from a field 'somewhere', we just need to figure out where... Cheers! -- Smug
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
09/26/15 11:05 PM (9 years ago)
Graham: I just saw your edit. Cool. Requires further debugging. Sometimes a plugin can spit out corrupted JSON, it's rare, but happens. Delete the screen that's causing the comma issue and re-add a new screen, it should correct the JSON syntax. If no luck, post that portion of JSON here and we can debug further... :-) mrDavid
 

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.