Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2896
Joined: 18 Apr 2017, 09:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

#1

Post by BetterBear »

ImageSeriously, what is wrong with this code?

Code: Select all

. [
  {
  "override":true,
    "id":"trcars",
    "type":"car",
    "frames":[
      {"bmp":"sedan.png","w":13,"h":13,"count":4},  
	  {"bmp":"hatchback1.png","w":12,"h":12,"count":4},
	    {"bmp":"minivan.png","w":11,"h":10,"count":4},
		{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
		{"bmp":"pickup1.png","w":16,"h":12,"count":4}	 

    ],
    "meta": {
    "tags": {
    "carres0": {},
    "carres1": {},
    "v2":true
  },
   
  "override":true,
    "id":"tttrcars",
    "type":"car",
    "frames":[
      {"bmp":"sports1.png","w":13,"h":11,"count":4},  
	  {"bmp":"sports2.png","w":13,"h":11,"count":4},
	  {"bmp":"ttt.png","w":18,"h":12,"count":4},
	  {"bmp":"cadillac.png","w":20,"h":12,"count":4}

    ],
    "meta": {
    "tags": {
     "carres2": {},
    "v2":true
  },
  
  
  "override":true,
    "id":"trcars#2",
    "type":"car",
    "frames":[
      {"bmp":"hatchback2.png","w":11,"h":9,"count":4},  
	  {"bmp":"hatchback3.png","w":11,"h":10,"count":4}, 
	  {"bmp":"muscle.png","w":15,"h":11,"count":4},
	  {"bmp":"muscle1.png","w":15,"h":11,"count":4},
	  {"bmp":"muscle2.png","w":15,"h":11,"count":4},
	  {"bmp":"stationwagon.png","w":13,"h":11,"count":4},
	  	  {"bmp":"bluesmobile.png","w":16,"h":12,"count":4},
		  {"bmp":"general.png","w":15,"h":12,"count":4}  
		],
		"meta": {
		"tags": {
		"carres0": {},
		"carres1": {},
    "v2":true
  },
    
	"override":true,
    "type":"car",
    "meta": {
    "tags": {
    "carind1": {},
    "carind2": {},
    "frames":[
      {"bmp":"box1.png","w":13,"h":12,"count":4},
	  {"bmp":"box2.png","w":13,"h":12,"count":4},
	  {"bmp":"box3.png","w":13,"h":12,"count":4},
	  {"bmp":"truck3.png","w":20,"h":15,"count":4},
	  {"bmp":"truck4.png","w":20,"h":15,"count":4},
	  {"bmp":"mixer.png","w":17,"h":13,"count":4},
	{"bmp":"gastanker1.png","w":13,"h":12,"count":4},
	  {"bmp":"truck5.png","w":20,"h":15,"count":4},
	  {"bmp":"truck6.png","w":20,"h":15,"count":4},
	  {"bmp":"box5.png","w":13,"h":12,"count":4},
	  {"bmp":"ind31.png","w":17,"h":14,"count":4},
	  {"bmp":"van.png","w":14,"h":12,"count":4}
    ],
    "id":"tt&ttticars"
    }
    ]
 
I seriously tried EVERYTHING. The error was in the end part. When I made it:

Code: Select all

...
"id": " ttt&tticars"

}
]
It says "Unterminated object", but this is the standard end code, right?

This error is killing me. Is this a bug? Because seriously, I'm 100% sure that I'm not doing anything wrong. IT TOOK ME 400+ TRIES. STILL NOTHING.
Please answer ASAP.
Last edited by BetterBear on 17 Mar 2018, 16:27, edited 1 time in total.

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

Plugin Creator

Platform

Re: Please, help. PLEASE.

#2

Post by CommanderABab »

BetterBear wrote:
13 Mar 2018, 12:42
Seriously, what is wrong with this code?

Code: Select all

. [
  {
  "override":true,
    "id":"trcars",
    "type":"car",
    "frames":[
      {"bmp":"sedan.png","w":13,"h":13,"count":4},  
	  {"bmp":"hatchback1.png","w":12,"h":12,"count":4},
	    {"bmp":"minivan.png","w":11,"h":10,"count":4},
		{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
		{"bmp":"pickup1.png","w":16,"h":12,"count":4}	 

    ],
    "meta": {
    "tags": {
    "carres0": {},
    "carres1": {},
    "v2":true
  },
   {
  "override":true,
    "id":"tttrcars",
    "type":"car",
    "frames":[
      {"bmp":"sports1.png","w":13,"h":11,"count":4},  
	  {"bmp":"sports2.png","w":13,"h":11,"count":4},
	  {"bmp":"ttt.png","w":18,"h":12,"count":4},
	  {"bmp":"cadillac.png","w":20,"h":12,"count":4}

    ],
    "meta": {
    "tags": {
     "carres2": {},
    "v2":true
  },
  
  {
  "override":true,
    "id":"trcars#2",
    "type":"car",
    "frames":[
      {"bmp":"hatchback2.png","w":11,"h":9,"count":4},  
	  {"bmp":"hatchback3.png","w":11,"h":10,"count":4}, 
	  {"bmp":"muscle.png","w":15,"h":11,"count":4},
	  {"bmp":"muscle1.png","w":15,"h":11,"count":4},
	  {"bmp":"muscle2.png","w":15,"h":11,"count":4},
	  {"bmp":"stationwagon.png","w":13,"h":11,"count":4},
	  	  {"bmp":"bluesmobile.png","w":16,"h":12,"count":4},
		  {"bmp":"general.png","w":15,"h":12,"count":4}  
		],
		"meta": {
		"tags": {
		"carres0": {},
		"carres1": {},
    "v2":true
  },
    {
	"override":true,
    "type":"car",
    "meta": {
    "tags": {
    "carind1": {},
    "carind2": {},
    "frames":[
      {"bmp":"box1.png","w":13,"h":12,"count":4},
	  {"bmp":"box2.png","w":13,"h":12,"count":4},
	  {"bmp":"box3.png","w":13,"h":12,"count":4},
	  {"bmp":"truck3.png","w":20,"h":15,"count":4},
	  {"bmp":"truck4.png","w":20,"h":15,"count":4},
	  {"bmp":"mixer.png","w":17,"h":13,"count":4},
	{"bmp":"gastanker1.png","w":13,"h":12,"count":4},
	  {"bmp":"truck5.png","w":20,"h":15,"count":4},
	  {"bmp":"truck6.png","w":20,"h":15,"count":4},
	  {"bmp":"box5.png","w":13,"h":12,"count":4},
	  {"bmp":"ind31.png","w":17,"h":14,"count":4},
	  {"bmp":"van.png","w":14,"h":12,"count":4}
    ],
    "id":"tt&ttticars"
    }
    ]
 
I seriously tried EVERYTHING. The error was in the end part. When I made it:

Code: Select all

...
"id": " ttt&tticars"

}
]
It says "Unterminated object", but this is the standard end code, right?

This error is killing me. Is this a bug? Because seriously, I'm 100% sure that I'm not doing anything wrong. IT TOOK ME 400+ TRIES. STILL NOTHING.
Please answer ASAP.
Missing {s, which I added in the quoted code.

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2896
Joined: 18 Apr 2017, 09:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Re: Please, help. PLEASE.

#3

Post by BetterBear »

@C@CommanderABab
Thanks, but where?

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

Plugin Creator

Platform

Re: Please, help. PLEASE.

#4

Post by CommanderABab »

CommanderABab wrote:
13 Mar 2018, 17:37
BetterBear wrote:
13 Mar 2018, 12:42
Seriously, what is wrong with this code?
. [
{
"override":true,
"id":"trcars",
"type":"car",
"frames":[
{"bmp":"sedan.png","w":13,"h":13,"count":4},
{"bmp":"hatchback1.png","w":12,"h":12,"count":4},
{"bmp":"minivan.png","w":11,"h":10,"count":4},
{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
{"bmp":"pickup1.png","w":16,"h":12,"count":4}

],
"meta": {
"tags": {
"carres0": {},
"carres1": {},
"v2":true
},
--> {
"override":true,
"id":"tttrcars",
"type":"car",
"frames":[
{"bmp":"sports1.png","w":13,"h":11,"count":4},
{"bmp":"sports2.png","w":13,"h":11,"count":4},
{"bmp":"ttt.png","w":18,"h":12,"count":4},
{"bmp":"cadillac.png","w":20,"h":12,"count":4}

],
"meta": {
"tags": {
"carres2": {},
"v2":true
},

--> {
"override":true,
"id":"trcars#2",
"type":"car",
"frames":[
{"bmp":"hatchback2.png","w":11,"h":9,"count":4},
{"bmp":"hatchback3.png","w":11,"h":10,"count":4},
{"bmp":"muscle.png","w":15,"h":11,"count":4},
{"bmp":"muscle1.png","w":15,"h":11,"count":4},
{"bmp":"muscle2.png","w":15,"h":11,"count":4},
{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
{"bmp":"bluesmobile.png","w":16,"h":12,"count":4},
{"bmp":"general.png","w":15,"h":12,"count":4}
],
"meta": {
"tags": {
"carres0": {},
"carres1": {},
"v2":true
},
--> {
"override":true,
"type":"car",
"meta": {
"tags": {
"carind1": {},
"carind2": {},
"frames":[
{"bmp":"box1.png","w":13,"h":12,"count":4},
{"bmp":"box2.png","w":13,"h":12,"count":4},
{"bmp":"box3.png","w":13,"h":12,"count":4},
{"bmp":"truck3.png","w":20,"h":15,"count":4},
{"bmp":"truck4.png","w":20,"h":15,"count":4},
{"bmp":"mixer.png","w":17,"h":13,"count":4},
{"bmp":"gastanker1.png","w":13,"h":12,"count":4},
{"bmp":"truck5.png","w":20,"h":15,"count":4},
{"bmp":"truck6.png","w":20,"h":15,"count":4},
{"bmp":"box5.png","w":13,"h":12,"count":4},
{"bmp":"ind31.png","w":17,"h":14,"count":4},
{"bmp":"van.png","w":14,"h":12,"count":4}
],
"id":"tt&ttticars"
}
]


I seriously tried EVERYTHING. The error was in the end part. When I made it:

Code: Select all

...
"id": " ttt&tticars"

}
]
It says "Unterminated object", but this is the standard end code, right?

This error is killing me. Is this a bug? Because seriously, I'm 100% sure that I'm not doing anything wrong. IT TOOK ME 400+ TRIES. STILL NOTHING.
Please answer ASAP.
Missing {s, which I added in the quoted code.

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2896
Joined: 18 Apr 2017, 09:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Re: Please, help. PLEASE. (JSON issue)

#5

Post by BetterBear »

Doesn't work.

User avatar
cesareborgia94
Reactions:

Re: Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

#6

Post by cesareborgia94 »

Try to post the whole file with the texture and json code, maybe it will be easy to help you. Also please tell what are you going to do with this plugin?

Also maybe simplify the plugin instead of putting all the codes in one json file. Its too complex to understand.

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2896
Joined: 18 Apr 2017, 09:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Re: Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

#7

Post by BetterBear »

cesareborgia94 wrote:
17 Mar 2018, 17:27
Try to post the whole file with the texture and json code, maybe it will be easy to help you. Also please tell what are you going to do with this plugin?

Also maybe simplify the plugin instead of putting all the codes in one json file. Its too complex to understand.
That's the entire JSON code. Sending textures won't do anything, since the problem is "unterminated character" and If I correct it, then "expected literal value" appears.
This error is just so ankward. This is the only error where I literally had 0% idea of what is wrong.

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

Plugin Creator

Platform

Re: Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

#8

Post by CommanderABab »

Code: Select all

[
{
"override":true,
"id":"trcars",
"type":"car",
"frames":[
{"bmp":"sedan.png","w":13,"h":13,"count":4}, 
{"bmp":"hatchback1.png","w":12,"h":12,"count":4},
{"bmp":"minivan.png","w":11,"h":10,"count":4},
{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
{"bmp":"pickup1.png","w":16,"h":12,"count":4}	 

],
"meta": {
"tags": {
"carres0": {},
"carres1": {}
}},
"v2":true
},
{
"override":true,
"id":"tttrcars",
"type":"car",
"frames":[
{"bmp":"sports1.png","w":13,"h":11,"count":4}, 
{"bmp":"sports2.png","w":13,"h":11,"count":4},
{"bmp":"ttt.png","w":18,"h":12,"count":4},
{"bmp":"cadillac.png","w":20,"h":12,"count":4}

],
"meta": {
"tags": {
"carres2": {}
}},
"v2":true
},
{
"override":true,
"id":"trcars#2",
"type":"car",
"frames":[
{"bmp":"hatchback2.png","w":11,"h":9,"count":4}, 
{"bmp":"hatchback3.png","w":11,"h":10,"count":4}, 
{"bmp":"muscle.png","w":15,"h":11,"count":4},
{"bmp":"muscle1.png","w":15,"h":11,"count":4},
{"bmp":"muscle2.png","w":15,"h":11,"count":4},
{"bmp":"stationwagon.png","w":13,"h":11,"count":4},
{"bmp":"bluesmobile.png","w":16,"h":12,"count":4},
{"bmp":"general.png","w":15,"h":12,"count":4} 
],
"meta": {
"tags": {
"carres0": {},
"carres1": {}
}},
"v2":true
},
{
"override":true,
"type":"car",
"meta": {
"tags": {
"carind1": {},
"carind2": {}
}},
"frames":[
{"bmp":"box1.png","w":13,"h":12,"count":4},
{"bmp":"box2.png","w":13,"h":12,"count":4},
{"bmp":"box3.png","w":13,"h":12,"count":4},
{"bmp":"truck3.png","w":20,"h":15,"count":4},
{"bmp":"truck4.png","w":20,"h":15,"count":4},
{"bmp":"mixer.png","w":17,"h":13,"count":4},
{"bmp":"gastanker1.png","w":13,"h":12,"count":4},
{"bmp":"truck5.png","w":20,"h":15,"count":4},
{"bmp":"truck6.png","w":20,"h":15,"count":4},
{"bmp":"box5.png","w":13,"h":12,"count":4},
{"bmp":"ind31.png","w":17,"h":14,"count":4},
{"bmp":"van.png","w":14,"h":12,"count":4}
],
"id":"tt&ttticars"
}
]

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

Plugin Creator

Platform

Re: Please, help. PLEASE. (JSON issue, STILL HAVENT FIXED)

#9

Post by CommanderABab »

BetterBear wrote:
17 Mar 2018, 17:37
cesareborgia94 wrote:
17 Mar 2018, 17:27
Try to post the whole file with the texture and json code, maybe it will be easy to help you. Also please tell what are you going to do with this plugin?

Also maybe simplify the plugin instead of putting all the codes in one json file. Its too complex to understand.
That's the entire JSON code. Sending textures won't do anything, since the problem is "unterminated character" and If I correct it, then "expected literal value" appears.
This error is just so ankward. This is the only error where I literally had 0% idea of what is wrong.
Not closing brackets ...

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”