Help regarding json schema template errors

Can anyone help me correct errors in this json template:-

{
	"name": "ITEMPA",
	"metadata-version": 1,
	"extension_version": 5,
	"author": "ITEMPA",
	"platforms": [
		"NONE"
	],
	"extensions": {},
	"keys": [],
	"components": [{
		"id": "ITEMIDVA1_{ID}",
		"type": "VerticalArrangement",
		"properties": {
			"Width": -2
		},
		"components": [{
				"id": "ITEMDIVIDER_{ID}",
				"type": "Label",
				"properties": {
					"Width": -2,
					"Height": 1,
					"BackgroundColor": -2697514
				}
			},
			{
				"id": "ITEMIDHA1_{ID}",
				"type": "HorizontalArrangement",
				"properties": {
					"Width": -2
				},
				"components": [{
						"id": "ITEMIDIMG1_{ID}",
						"type": "Image",
						"properties": {
							"Height": 60,
							"Width": 60,
							"Padding": [
								5,
								5,
								5,
								5
							],
							"Picture": "{ITEMPICTURE}"
						}
					},
					{
						"id": "STGIDVA2_{ID}",
						"type": "VerticalArrangement",
						"properties": {
							"Width": -2,
							"Clickable": true
						},
						"components": [{
								"id": "ITEMIDLABEL3_{ID}",
								"type": "Label",
								"properties": {
									"Text": "{ITEMBODY}",
									"FontTypeface": "1099-font.ttf",
									"Clickable": true,
									"FontSize": 15,
									"HTMLFormat": true,
									"LineSpacing": 8
								}
							},
							{
								"id": "ITEMIDHA2_{ID}",
								"type": "HorizontalArrangement",
								"properties": {
									"CornerRadius": 20,
									"Width": -2
								},
								"components": [{
									"id": "ITEMIDCARDVIEW1_{ID}",
									"type": "CardView",
									"properties": {
										"Width": -1,
										"Height": -1,
										"Elevation": 0,
										"Padding": [
											0,
											0,
											0,
											0
										],
										"CornerRadius": 4
									},
									"components": [{
										"id": "ITEMIDIMG3_{ID}",
										"type": "Image",
										"properties": {
											"Height": -1,
											"Width": -1,
											"Picture": "{ITEMIMAGE}"
										}
									}]

								]
							},
							{
								"id": "ITEMIDHA3_{ID}",
								"type": "HorizontalArrangement",
								"properties": {
									"AlignVertical": 2,
									"Width": -2,
									"Padding": [
										5,
										0,
										5,
										0
									]
								},
								"components": [{
										"id": "ITEMIDLABEL4_{ID}",
										"type": "Label",
										"properties": {
											"Text": "textsms",
											"FontTypeface": 4,
											"FontSize": 15
										}
									},
									{
										"id": "ITEMIDLABEL5_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMCOMMENTCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL6_{ID}",
										"type": "Label",
										"properties": {
											"Text": "autorenew",
											"FontTypeface": 4,
											"FontSize": 15
										}
									},
									{
										"id": "ITEMIDLABEL7_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMREITEMCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL8_{ID}",
										"type": "Label",
										"properties": {
											"Text": "favorite_border",
											"FontTypeface": 4,
											"FontSize": 15,
											"Clickable": true
										}
									},
									{
										"id": "ITEMIDLABEL9_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMLIKECOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2,
											"Clickable": true
										}
									},
									{
										"id": "ITEMIDLABEL10_{ID}",
										"type": "Label",
										"properties": {
											"Text": "bar_chart",
											"FontSize": 15,
											"FontTypeface": 4
										}
									},
									{
										"id": "ITEMIDLABEL11_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMVIEWSCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL12_{ID}",
										"type": "Label",
										"properties": {
											"Text": "share",
											"FontTypeface": 4,
											"Width": -2,
											"FontSize": 15,
											"TextAlignment": 2
										}
									}
								]
							}
						]
					}
				]
			}
		]
	}]
}

image

I tried with it a lot…but it gives error anyways… :pensive:

No always parse ur json online

{
	"name": "ITEMPA",
	"metadata-version": 1,
	"extension_version": 5,
	"author": "ITEMPA",
	"platforms": [
		"NONE"
	],
	"extensions": {},
	"keys": [],
	"components": [{
		"id": "ITEMIDVA1_{ID}",
		"type": "VerticalArrangement",
		"properties": {
			"Width": -2
		},
		"components": [{
				"id": "ITEMDIVIDER_{ID}",
				"type": "Label",
				"properties": {
					"Width": -2,
					"Height": 1,
					"BackgroundColor": -2697514
				}
			},
			{
				"id": "ITEMIDHA1_{ID}",
				"type": "HorizontalArrangement",
				"properties": {
					"Width": -2
				},
				"components": [{
						"id": "ITEMIDIMG1_{ID}",
						"type": "Image",
						"properties": {
							"Height": 60,
							"Width": 60,
							"Padding": [
								5,
								5,
								5,
								5
							],
							"Picture": "{ITEMPICTURE}"
						}
					},
					{
						"id": "STGIDVA2_{ID}",
						"type": "VerticalArrangement",
						"properties": {
							"Width": -2,
							"Clickable": true
						},
						"components": [{
								"id": "ITEMIDLABEL3_{ID}",
								"type": "Label",
								"properties": {
									"Text": "{ITEMBODY}",
									"FontTypeface": "1099-font.ttf",
									"Clickable": true,
									"FontSize": 15,
									"HTMLFormat": true,
									"LineSpacing": 8
								}
							},
							{
								"id": "ITEMIDHA2_{ID}",
								"type": "HorizontalArrangement",
								"properties": {
									"CornerRadius": 20,
									"Width": -2
								},
								"components": [{
									"id": "ITEMIDCARDVIEW1_{ID}",
									"type": "CardView",
									"properties": {
										"Width": -1,
										"Height": -1,
										"Elevation": 0,
										"Padding": [
											0,
											0,
											0,
											0
										],
										"CornerRadius": 4
									},
									"components": [{
										"id": "ITEMIDIMG3_{ID}",
										"type": "Image",
										"properties": {
											"Height": -1,
											"Width": -1,
											"Picture": "{ITEMIMAGE}"
										}
									}
									]
					}			
					]
							},
							{
								"id": "ITEMIDHA3_{ID}",
								"type": "HorizontalArrangement",
								"properties": {
									"AlignVertical": 2,
									"Width": -2,
									"Padding": [
										5,
										0,
										5,
										0
									]
								},
								"components": [{
										"id": "ITEMIDLABEL4_{ID}",
										"type": "Label",
										"properties": {
											"Text": "textsms",
											"FontTypeface": 4,
											"FontSize": 15
										}
									},
									{
										"id": "ITEMIDLABEL5_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMCOMMENTCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL6_{ID}",
										"type": "Label",
										"properties": {
											"Text": "autorenew",
											"FontTypeface": 4,
											"FontSize": 15
										}
									},
									{
										"id": "ITEMIDLABEL7_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMREITEMCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL8_{ID}",
										"type": "Label",
										"properties": {
											"Text": "favorite_border",
											"FontTypeface": 4,
											"FontSize": 15,
											"Clickable": true
										}
									},
									{
										"id": "ITEMIDLABEL9_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMLIKECOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2,
											"Clickable": true
										}
									},
									{
										"id": "ITEMIDLABEL10_{ID}",
										"type": "Label",
										"properties": {
											"Text": "bar_chart",
											"FontSize": 15,
											"FontTypeface": 4
										}
									},
									{
										"id": "ITEMIDLABEL11_{ID}",
										"type": "Label",
										"properties": {
											"Text": "{ITEMVIEWSCOUNT}",
											"FontTypeface": "1099-font.ttf",
											"FontSize": 15,
											"Width": -2
										}
									},
									{
										"id": "ITEMIDLABEL12_{ID}",
										"type": "Label",
										"properties": {
											"Text": "share",
											"FontTypeface": 4,
											"Width": -2,
											"FontSize": 15,
											"TextAlignment": 2
										}
									}
								]
							}
						]
					}
				]
			}
		]
	}]
}

see no error

1 Like

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.