[Answered] Plugin crash, jsonobject cant be converted to jsonarray (parkbt3c.json)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

[Answered] Plugin crash, jsonobject cant be converted to jsonarray (parkbt3c.json)

#1

Post by Between3Characters »

Hi, I got the following error, from my plugin i wanted to create.
(parkbt3c.json:121):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Parkbt3c/parkbt3c.json:

org.json.JSONException: Value {"id":"$cat_BT3C_parks00","type":"category","title":"Parks By BT3C","frames":[{"bmp":"icon.png"}]} of type org.json.JSONObject cannot be converted to JSONArray
Device: Redmi 4A (Xiaomi)
Android: 25
Thank you in advance.

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

Re: Plugin crash, jsonobject cant be converted to jsonarray (parkbt3c.json)

#2

Post by Between3Characters »

plz.... Reply the problem

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

Plugin Creator

Platform

Re: Plugin crash, jsonobject cant be converted to jsonarray (parkbt3c.json)

#3

Post by CommanderABab »

Between3Characters wrote:
16 Jan 2019, 12:07
Hi, I got the following error, from my plugin i wanted to create.
(parkbt3c.json:121):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Parkbt3c/parkbt3c.json:

org.json.JSONException: Value {"id":"$cat_BT3C_parks00","type":"category","title":"Parks By BT3C","frames":[{"bmp":"icon.png"}]} of type org.json.JSONObject cannot be converted to JSONArray
Device: Redmi 4A (Xiaomi)
Android: 25
Thank you in advance.
Try this:

Code: Select all

[
  {
    "id":"$cat_BT3C_parks00",
    "type":"category",
    "title":"Parks By BT3C",
    "frames":[{"bmp":"icon.png"}]
  }
]
You left out the outer [ and ] in the .json file.

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

Re: Plugin crash, jsonobject cant be converted to jsonarray (parkbt3c.json)

#4

Post by Between3Characters »

I left it, but i think it was lobby's mistake. Lobby's catrgories (custom) didnt add it.

Post Reply Previous topicNext topic

Return to “Problems”