JSON - Two different values

Hello Gents,

I have question regarding JSON and squaredup. I’m not expert in JSON so I wanted to ask you guys. I have following code.

{
	"_type": "tile/visio",
	"config": {
		"context": {},
		"source": {
			"scope": {
				"objectIds": [
					"b39a6c55-1b05-b9c9-b916-87e2231b2f68",
					"7877cac5-f3ce-450a-70ef-31fce7cf6a28",
					"7681a7a7-7aa5-99f6-bf73-4ecf2320c6b5",
					"4b0dac9d-8aba-97e6-508e-8aefcf99e588",
					"7ec9a3de-678b-704a-fea6-289024c07638",
					"7ed11273-4c6d-476b-c53b-0a10f08e733c",
					"cd2cd9fc-0a6c-78d1-cd09-15cb5dab547a",
					"4a068171-2c7b-7a5c-6f4a-7b30f6d5c234",
					"bd9405fc-4cb5-5637-5ed8-e268c5359b88",
					"87692a89-3ad2-44cd-9110-abb4468cf6c5",
					"7b0181a5-7f43-0094-0d32-048932d56a67",
					"af1ace29-4045-02bd-2f27-621eac6ce6de",
					"052f6fb7-2a5b-bb4d-44fd-69bf5a50d96f",
					"64460089-e7af-87ba-d361-f15527ab0d81",
					"e70e8b70-fad4-f0dc-f09e-d64af6053224",
					"6973ee59-8d8a-2558-5e53-202b17d15993",
					"45b62bce-2ab0-e14c-0df6-dd1756fabd2f",
					"3ee26ca1-f29c-fb9e-bf2c-91ae654772ec"
				]
			}
		},
		"display": {
			"behavior": "health-state-icons",
			"iconpositiony": "middle",
			"iconpositionx": "center",
			"iconsize": 11,
			"path": "/res/af16428f-1833-4b94-bd02-40d87e927b4e/KOC-2021033108465875579.svg",
			"colormatch": ""
		}
	},
	"description": "",
	"title": ""
}

I need ID “b39a6c55-1b05-b9c9-b916-87e2231b2f68” to have different “display” parameters than others .Is this possible in JSON?

Thank you,
Vaclav

Hey

I’m afraid you may have to elaborate a little. What do you mean by different display parameters?

Hi,

Once again, I’m no expert in JSON. Basically what I need is different parametrs for some of IDs in code.

Let say ID “b39a6c55-1b05-b9c9-b916-87e2231b2f68” would have parameter display like this
“display”: {
“behavior”: “health-state-icons”,
“iconpositiony”: “middle”,
“iconpositionx”: “center”,
“iconsize”: 11,
And for example ID “3ee26ca1-f29c-fb9e-bf2c-91ae654772ec” would have display like this
“display”: {
“behavior”: “health-state-colour-replace”,
“iconpositiony”: “”,
“iconpositionx”: “”,
“iconsize”: “”,