Page 1 of 1

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

Posted: 13 Mar 2018, 12:42
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.

Re: Please, help. PLEASE.

Posted: 13 Mar 2018, 17:37
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.

Re: Please, help. PLEASE.

Posted: 13 Mar 2018, 23:52
by BetterBear
@C@CommanderABab
Thanks, but where?

Re: Please, help. PLEASE.

Posted: 14 Mar 2018, 00:00
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.

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

Posted: 17 Mar 2018, 16:26
by BetterBear
Doesn't work.

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

Posted: 17 Mar 2018, 17:27
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.

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

Posted: 17 Mar 2018, 17:37
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.

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

Posted: 17 Mar 2018, 18:35
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"
}
]

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

Posted: 17 Mar 2018, 18:38
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 ...