JSONarray cannot be converted to JSONObject (Solved)

Do you have any issues? Don't hesitate to tell us about it.
User avatar
PixelBit1702
Small-town resident
Reactions:
Posts: 39
Joined: 09 Dec 2019, 18:09
Location: Brazil
Plugins: Showcase Store

Plugin Creator

Platform

JSONarray cannot be converted to JSONObject (Solved)

#1

Post by PixelBit1702 »

Content Deleted because this problem has been resolved a long time ago.
Last edited by PixelBit1702 on 11 May 2020, 17:18, edited 3 times in total.

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#2

Post by Bearbear76 »

the "frames" look odd
You have to put a picture there such as example.png and also have to add a " to the end

Code: Select all

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

User avatar
PixelBit1702
Small-town resident
Reactions:
Posts: 39
Joined: 09 Dec 2019, 18:09
Location: Brazil
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#3

Post by PixelBit1702 »

Content Deleted because this problem has been resolved a long time ago.
Last edited by PixelBit1702 on 11 May 2020, 17:17, edited 1 time in total.

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

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#4

Post by CommanderABab »

Why not quote this, copy your code and paste it -->

Code: Select all

here
:)

User avatar
PixelBit1702
Small-town resident
Reactions:
Posts: 39
Joined: 09 Dec 2019, 18:09
Location: Brazil
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#5

Post by PixelBit1702 »

Content Deleted because this problem has been resolved a long time ago.
Last edited by PixelBit1702 on 11 May 2020, 17:17, edited 1 time in total.

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

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#6

Post by CommanderABab »

:?: Ok, glad it helped. :)

User avatar
PixelBit1702
Small-town resident
Reactions:
Posts: 39
Joined: 09 Dec 2019, 18:09
Location: Brazil
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#7

Post by PixelBit1702 »

Content Deleted because this problem has been resolved a long time ago.
Last edited by PixelBit1702 on 11 May 2020, 17:17, edited 2 times in total.

User avatar
JustAnyone
Developer
Reactions:
Posts: 3479
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: JSONarray cannot be converted to JSONObject

#8

Post by JustAnyone »

Code: Select all

[{
    "id": "$pcw_HsdYBGooJa00",
    "type": "residential",
    "author": "Plugin creator website 0.5 & TT Brazilian House",
    "width": 3,
    "height": 3,
    "frames": [{"bmp":"TTHouseMadeByPixel1702.png"}],
     "people": 3,
    "level": 2
}]
This code should work now

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

Plugin Creator

Platform

Re: JSONarray cannot be converted to JSONObject

#9

Post by CommanderABab »

It's a nice looking house, but the image has the sun coming the opposite of the TheoTown sun. It might be approved if you flip the image left to right.

Post Reply Previous topicNext topic

Return to “Problems and Errors (bugs)”