Object (Data Type)

A complex piece of data consisting of more fields.

A complex piece of data consisting of more fields. Objects are enclosed in curly braces and contain multiple "key": value entries separated by commas.

Examples

{
	"field_name": {
		"field_1": "value_1",
		"field_2": 3,
		"field_3": [
			"array_value_1",
			"array_value_2"
		]
	}
}

An object containing a String field, an Integer field, and an Array of Strings.

"effect": {
    "effect": "minecraft:slowness",
    "amplifier": 1,
    "duration": 80
}

An object in the format of a Status Effect Instance, specifying a Slowness II status which lasts for 4 seconds.