Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 5    Views: 305

MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
11/20/15 11:51 AM (8 years ago)

The JSON data for this app is invalid

Hi there guys, I've read the forums here, copied the json data over and over again, but I still get this error. Can anybody help me? Thanks {"BT_appConfig": { "BT_items":[ {"itemId":"EA031C927B04EE58451BD945E", "itemType":"BT_app", "buzztouchAppId":"EA031C927B04EE58451BD945E", "buzztouchAPIKey":"C9B707E51779A91C5497C13", "dataURL":"http://www.mobigeni.com/appsbuilder/api/app/?command=getAppData&appGuid=EA031C927B04EE58451BD945E&apiKey=C9B707E51779A91C5497C13&apiSecret=36172FFDCE18DCC3D02562C", "reportToCloudURL":"http://www.mobigeni.com/appsbuilder/api/app/?command=reportToCloud&appGuid=EA031C927B04EE58451BD945E&apiKey=C9B707E51779A91C5497C13&apiSecret=36172FFDCE18DCC3D02562C&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"http://www.mobigeni.com/appsbuilder/api/app/?command=registerForPush&appGuid=EA031C927B04EE58451BD945E&apiKey=C9B707E51779A91C5497C13&apiSecret=36172FFDCE18DCC3D02562C&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Fri, 20 Nov 2015 18:45:18 -0800", "lastPublished":"Fri, 20 Nov 2015 18:33:19 -0800", "name":"SanFran", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[ {"itemId":"CCFC0DAAC63DA036DEBCD94", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[ {"itemId":"EA8642B9DB8DDDB43C7D964", "itemType":"BT_tab", "textLabel":"Home", "iconName":"home.png", "soundEffectFileName":"", "homeScreenItemId":"112A354C0BC13C9F7D53EF3"} ], "BT_menus":[ {"itemId":"24175406414BCC2277C6EC2", "itemType":"BT_menu", "itemNickname":"Share" , "childItems":[ {"itemType":"BT_menuItem", "titleText":"Share", "loadScreenWithItemId":"F1135439F8FD2C1CEA8654F"} ]} ], "BT_screens":[ {"itemId":"A20F0D4A102800DE296B778", "itemType":"BT_screen_customURL", "itemNickname":"Shop", "navBarTitleText":"Shop", "dataURL":"http://www.google.com"}, {"itemId":"F7F1638E162DE25EB8CF465", "itemType":"BT_screen_customURL", "itemNickname":"Events", "navBarTitleText":"Events", "dataURL":"http://www.s-fran.com", "forceRefresh":"1"}, {"itemId":"112A354C0BC13C9F7D53EF3", "itemType":"BT_screen_customURL", "itemNickname":"Home", "navBarTitleText":"Home", "dataURL":"http://www.s-fran.com", "forceRefresh":"1"}, {"itemId":"F1135439F8FD2C1CEA8654F", "itemType":"JC_ShareController", "itemNickname":"Share Menu", "itemId”:”11223344”, "itemType":"JC_ShareController", "itemNickname":"Share Controller", "shareMail":"1", "shareMessage":"1", "shareFacebook":"1", "shareTwitter":"1", "shareWeibo":"1", "shareCopy":"1", "sharePrint":"0", "shareCameraRoll":"0", "shareContact":"0"} ] } ] }}
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/20/15 12:45 PM (8 years ago)
In this part "itemId": "F1135439F8FD2C1CEA8654F", "itemType": "JC_ShareController", "itemNickname": "Share Menu", "itemId”:”11223344”, "itemType":"JC_ShareController", instead of itemId you have some strange characters, remove them and the JSON should become valid.
 
MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
like
11/20/15 12:47 PM (8 years ago)
Yeah I got it fixed! I've changed the defaults from the plugin and it worked. I forgot to fill it in.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
11/20/15 06:46 PM (8 years ago)
If that happens again you can go to jsonlint.com and copy/paste your entire json in there and it will tell you if it is valid. If there is an error it will show you exactly where the error is located as well.
 
MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
like
11/21/15 11:16 AM (8 years ago)
Yeah, thanks for the lint :), tried that site indeed... a search for json validation on google
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
11/21/16 07:01 PM (7 years ago)
Xcode 8.2 BT CORE 3.0 Self Hosted Hey, got another config data parse error. JSON validator locates: Error: Parse error on line 490: ...ylistId”, " " DasVideolist ----------------------^ Expecting 'EOF', '}', ':', ',', ']', got 'undefined' I'm in the dark about how and where to repair this? Do I go to the JSON in the control panel and repair, then download project again? Thank you in advance. RogueWave
 

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.