Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 64

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
04/18/13 07:01 PM (12 years ago)

Get JSON from BT_config.txt

Hi All, I am working on a new plugin. I am trying to get a string from the BT_config.txt file and print it to the BT_debugger. Here is what I have to get the JSON data: NSString *alertTitleJSON = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"button1ID" defaultValue:@""]; [BT_debugger showIt:self theMessage:alertTitleJSON]; When it prints to the log, it just says: (After the plugin name, the value in the JSON does not appear). 2013-04-18 18:57:46.978 plugintester[2906:c07] BT_screen_blank: Here is the JSON for the plugin: {"itemNickname":"AlertTest", "itemId":"A56E3DBF421FB4ADF4F9663", "itemType":"BT_screen_blank", "button1ID":"C4319C373730E773B83BDF5", "button1Name":"YouTube Test", "button1Type":"BT_screen_customURL"} Any ideas? Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/18/13 08:59 PM (12 years ago)
Are you sure your screen is the same one you are referencing in the config.txt file? How are you loading that screen?
 

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.