Json error

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Json error

#1

Post by FVI »

Hi, I got a problem with my plugin (vineyard code to use.json:3344):

Code: Select all

In vineyard pack.zip:

io.blueflower.stapel2d.util.json.JSONException: Value [[{"id":"$Vineyard1","type":"ground","title":"Vineyard decal 1","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna1.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard2","type":"ground","title":"Vineyard decal 2","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna2.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard3","type":"ground","title":"Vineyard decal 3","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna3.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard4","type":"ground","title":"Vineyard decal 4","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna4.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard1b","type":"ground","title":"Vineyard decal 1 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna10.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard2b","type":"ground","title":"Vineyard decal 2 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna20.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard3b","type":"ground","title":"Vineyard decal 3 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna30.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard4b","type":"ground","title":"Vineyard decal 4 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna40.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}]] at 0 of type io.blueflower.stapel2d.util.json.JSONArray cannot be converted to JSONObject 


What are json array and json object!? And what error is this please?
Thank you.

User avatar
kykywaHckuu
Settler
Reactions:
Posts: 2
Joined: 04 Dec 2021, 07:58

Re: Json error

#2

Post by kykywaHckuu »

Can you send a screenshot of it?

User avatar
Kulche
Pluche
Reactions:
Posts: 1152
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Json error

#3

Post by Kulche »

A very quick look indicates that you might have a spare pair of square brackets at the very beginning and end of your json. A full, readable code would be helpful though.

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Json error

#4

Post by FVI »

Code: Select all

In vineyard pack.zip:

io.blueflower.stapel2d.util.json.JSONException: Value 
[
[{"id":"$Vineyard1",
"type":"ground",
"title":"Vineyard decal 1",
"text":"A Vineyard decal for your countrysides. ",
"frames":[{"bmp":"Vigna1.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard2",
"type":"ground",
"title":"Vineyard decal 2",
"text":"A Vineyard decal for your countrysides. ",
"frames":[{"bmp":"Vigna2.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard3",
"type":"ground",
"title":"Vineyard decal 3",
"text":"A Vineyard decal for your countrysides. ",
"frames":[{"bmp":"Vigna3.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png",
"w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard4",
"type":"ground",
"title":"Vineyard decal 4",
"text":"A Vineyard decal for your countrysides. ",
"frames":[{"bmp":"Vigna4.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard1b",
"type":"ground",
"title":"Vineyard decal 1 left",
"text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
"frames":[{"bmp":"Vigna10.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard2b",
"type":"ground",
"title":"Vineyard decal 2 left",
"text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
"frames":[{"bmp":"Vigna20.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard3b",
"type":"ground",
"title":"Vineyard decal 3 left",
"text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
"frames":[{"bmp":"Vigna30.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],
[{"id":"$Vineyard4b",
"type":"ground",
"title":"Vineyard decal 4 left",
"text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna40.png","w":32,"count":1}],
"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}
]
]

 at 0 of type io.blueflower.stapel2d.util.json.JSONArray cannot be converted to JSONObject 
I tried to make it more readable in case there was another problem besides the parenthesis.

User avatar
Kulche
Pluche
Reactions:
Posts: 1152
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Json error

#5

Post by Kulche »

You did not remove the spare brackets.

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Json error

#6

Post by FVI »

Code: Select all

In vineyard code56776.zip:

.blueflower.stapel2d.util.json.JSONException: Value
 [{"id":"$Vineyard1",
 "type":"ground",
 "title":"Vineyard decal 1",
 "frames":[{"bmp":"Vigna1.png","w":32,"count":1}],
 "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
 "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
 "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
 }] 
 at 0 of type io.blueflower.stapel2d.util.json.JSONArray cannot be converted to JSONObject
Why isn't it working? I removed the spare brackets...

User avatar
Kulche
Pluche
Reactions:
Posts: 1152
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Json error

#7

Post by Kulche »

As I said, please provide the full json file.

User avatar
NotPFA
Townsman
Reactions:
Posts: 70
Joined: 28 Jan 2023, 17:34
Plugins: Showcase Store

Plugin Creator

Platform

Re: Json error

#8

Post by NotPFA »

Code: Select all

[
  {
    "id":"$Vineyard1",
    "type":"ground",
    "title":"Vineyard decal 1",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna1.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard2",
    "type":"ground",
    "title":"Vineyard decal 2",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna2.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard3",
    "type":"ground",
    "title":"Vineyard decal 3",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna3.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
    
  },
  {
    "id":"$Vineyard4",
    "type":"ground",
    "title":"Vineyard decal 4",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna4.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard1b",
    "type":"ground",
    "title":"Vineyard decal 1 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna10.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard2b",
    "type":"ground",
    "title":"Vineyard decal 2 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna20.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard3b",
    "type":"ground",
    "title":"Vineyard decal 3 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna30.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard4b",
    "type":"ground",
    "title":"Vineyard decal 4 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna40.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  }
]

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Json error

#9

Post by FVI »

NotPFA wrote:
24 Feb 2023, 21:22

Code: Select all

[
  {
    "id":"$Vineyard1",
    "type":"ground",
    "title":"Vineyard decal 1",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna1.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard2",
    "type":"ground",
    "title":"Vineyard decal 2",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna2.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard3",
    "type":"ground",
    "title":"Vineyard decal 3",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna3.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
    
  },
  {
    "id":"$Vineyard4",
    "type":"ground",
    "title":"Vineyard decal 4",
    "text":"A Vineyard decal for your countrysides. ",
    "frames":[{"bmp":"Vigna4.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard1b",
    "type":"ground",
    "title":"Vineyard decal 1 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna10.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard2b",
    "type":"ground",
    "title":"Vineyard decal 2 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna20.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard3b",
    "type":"ground",
    "title":"Vineyard decal 3 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna30.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  },
  {
    "id":"$Vineyard4b",
    "type":"ground",
    "title":"Vineyard decal 4 left",
    "text":"A Vineyard decal for your countryside. This version is oriented to the left. ",
    "frames":[{"bmp":"Vigna40.png","w":32,"count":1}],
    "border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],
    "edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],
    "edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]
  }
]
That code works perfectly! Thank you!

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

New problem :(

#10

Post by FVI »

The code worked perfectly but now when I try to use my decals, I see annoying black holes...
Vigna3.png
Vigna3.png (939 Bytes) Viewed 3208 times
Screenshot_20230225-083230.jpg
Please don't use the texture


Why is it happening?

User avatar
Kulche
Pluche
Reactions:
Posts: 1152
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Json error

#11

Post by Kulche »

Because ground is flat, and your textures are not, Provide a separate slope texture file.

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1517
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Json error

#12

Post by FVI »

I tried but the result was an even worse looking decal... Can it be fixed by changing the handle?

User avatar
DGYT
Orange Astronaut
Reactions:
Posts: 59
Joined: 23 Aug 2023, 13:55
Location: Afterlife
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Json error

#13

Post by DGYT »

FVI wrote:
23 Feb 2023, 19:42
Hi, I got a problem with my plugin (vineyard code to use.json:3344):

Code: Select all

In vineyard pack.zip:

io.blueflower.stapel2d.util.json.JSONException: Value [[{"id":"$Vineyard1","type":"ground","title":"Vineyard decal 1","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna1.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard2","type":"ground","title":"Vineyard decal 2","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna2.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard3","type":"ground","title":"Vineyard decal 3","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna3.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard4","type":"ground","title":"Vineyard decal 4","text":"A Vineyard decal for your countrysides. ","frames":[{"bmp":"Vigna4.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard1b","type":"ground","title":"Vineyard decal 1 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna10.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard2b","type":"ground","title":"Vineyard decal 2 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna20.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard3b","type":"ground","title":"Vineyard decal 3 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna30.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}],[{"id":"$Vineyard4b","type":"ground","title":"Vineyard decal 4 left","text":"A Vineyard decal for your countryside. This version is oriented to the left. ","frames":[{"bmp":"Vigna40.png","w":32,"count":1}],"border frames":[{"bmp":"border_frames.png","w":32,"handle y":8,"count":16}],"edge frames":[{"bmp":"edge_frames.png","w":16,"count":12}],"edge border frames":[{"bmp":"edge_border_frames.png","w":16,"count":32}]}]] at 0 of type io.blueflower.stapel2d.util.json.JSONArray cannot be converted to JSONObject 


What are json array and json object!? And what error is this please?
Thank you.
I might be late but since there are already solutions here, i will explain what an array is, you probably know what it means by now, and i dont know what a Json Object is,

so an Array is a group of items aka objects, its made using [], an example is

Code: Select all


Square Brackets represents an Array

    "frames": [{"bmp": "Example.png"}],

so a Json Array is an Array in Json (Probably)

Post Reply Previous topicNext topic

Return to “Problems”