Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 4    Views: 149

JayRod
I hate code!
Profile
Posts: 46
Reg: Apr 03, 2013
Neenah
4,760
05/06/13 07:44 PM (10 years ago)

How do I fix this faulty JSON data?

JSON ERROR READS Parse error on line 137: ... }, -----------------------^ Expecting 'STRING' HERE IS JSON DATA BELOW "itemId": "69848D9BF1121078D987233", "itemType": "BTA_design_menu", "itemNickname": "Extras", "navBarTitleText": "Extras", "childItems": [ //THIS IS LINE 137 ] }, { "itemId": "0F3BE4276A5F911402714F5", "itemType": "BT_screen_menuListSimple", "itemNickname": "Home Screen Menu", "navBarTitleText":
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/06/13 08:36 PM (10 years ago)
Impossible to know without seeing the entire JSON file. Really, line 137 doesn't mean anything without knowing what the file look like complete. But, from your note, it looks like the childItems array [] is empty for the BTA_design_menu. Add a menu item object to the array so it's not empty. Do this manually or with the control panel, depending on your approach.
 
aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
like
05/06/13 09:31 PM (10 years ago)
try JSON Validator on the mac store its free and it will show you in red where the error line is. https://itunes.apple.com/app/json-validator/id457563999?mt=12
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
05/07/13 04:36 AM (10 years ago)
its usually a extra comma or sometimes if you hit tab in the control panel when typing in a title. JSON validator is your best friend.
 
JayRod
I hate code!
Profile
Posts: 46
Reg: Apr 03, 2013
Neenah
4,760
like
05/07/13 05:15 AM (10 years ago)
Thanks guys, I'll give those suggestion a try and let you know. 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.