TypoScript 2 does not allow dash in key name

The dash is used when setting headers for example:

page = Page {
	httpResponseHead {
			headers {
				Content-Type = 'application/json'
			}
		}
	}
}
Assignee Loading
Time tracking Loading