Page 1 of 1

JSON Fix

Posted: 10 Sep 2022, 22:55
by PixelDubs
Ima start this thread, you can use this thread if JSONLint is being an idiot and not correcting your JSON errors automatically.
Here a human can do It for you, ofc credit them for this in your plugin, if you don't you will be reported to mods for it.
Ima start by giving my JSON that JSON Lint won't fix automatically as they are brain dead over there

Hopefully soon the devs make a in depth plugin creator where you just put what you want and it makes it, yes it exists already but right now, but it does not include everything, I also hope it gets automatic LUA c creation, and adds everything that can be possibly added to plugins, devs if your reading this add these to automatic plugin making system (Plugin Creator)

MY JSON which Json Lint won't fix automatically cuz they are brain dead and can't code

Code: Select all

[{
	"id": "$better_tt_ruralroad",
	"type": "road",
	"level": 1,
	"speed": 2.0,
	"frames": [{
		"bmp": "ruralroad.png",
		"w": 32,
		"h": 16,
		"count": 16
	}],
	"bridge frames": [{
		"bmp": "bridge.png",
		"w": 32,
		"h": 48,
		"count": 12
	}],
	"frames per bridge": 12,
	"traffic lights": [{
		"bmp": "tf.png",
		"w": 32,
		"h": 32,
		"count": 4
	}],
	"green phase": 3000,
	"yellow phase": 500,
	"price": 50,
	"bridge price": 200,
	"monthly price": 2,
	"requirements": "type": "RANK",
	"lvl": 3,
}]
Better to use code for this purpose :)