[Answered] [573] Plugin crash (kio.json:337)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Artem_123
Townsman
Reactions:
Posts: 63
Joined: 22 Apr 2018, 15:51
Plugins: Showcase Store
Version: Beta

Platform

[Answered] [573] Plugin crash (kio.json:337)

#1

Post by Artem_123 »

Hi, I got the following error with a plugin (kio.json:337):

Code: Select all

In /data/data/info.flowersoft.theotown.theotown/files/plugins/plg_kio.zip/kio/kio.json:

org.json.JSONException: Unterminated object at character 236 of [
   {
      "id":"kio.png",
	  "type":"commercial",
     "category":"Gahq_category",
      "width": 1,
	  "height": 1,
      "level": 2,
      "workers":6,
      "zone":" Gahqzone",
	  "frames":[{"bmp":"kio.png"}],
	  "water":"1,
	  "power":"1,
      "build time": 3,
	  "title":"Gahq shop
	  "text":"Good luck!"
   }
]
Device: GT-I9060 (samsung)
Android: 17 (4.2.2)

Thank you in advance.

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [573] Plugin crash (kio.json:337)

#2

Post by Lobby »

I recommend to use this website to spot json syntax errors in your code: https://jsonlint.com/

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [573] Plugin crash (kio.json:337)

#3

Post by CommanderABab »

Artem_123 wrote:
24 Dec 2018, 14:25
Hi, I got the following error with a plugin (kio.json:337):

Code: Select all

In /data/data/info.flowersoft.theotown.theotown/files/plugins/plg_kio.zip/kio/kio.json:

org.json.JSONException: Unterminated object at character 236 of [
   {
      "id":"kio.png",
	  "type":"commercial",
     "category":"Gahq_category",
      "width": 1,
	  "height": 1,
      "level": 2,
      "workers":6,
      "zone":" Gahqzone",
	  "frames":[{"bmp":"kio.png"}],
	  "water":"1,
	  "power":"1,
      "build time": 3,
	  "title":"Gahq shop
	  "text":"Good luck!"
   }
]
Device: GT-I9060 (samsung)
Android: 17 (4.2.2)

Thank you in advance.
As Lobby said. Also #codeboxtip .

I see problems these three lines:
1 numbers don't take quotes.  2 missing  quote and comma in title line.
1 numbers don't take quotes. 2 missing quote and comma in title line.

Post Reply Previous topicNext topic

Return to “Problems”