You’re very close. Just wrap your field names into {}
and it should display the correct value
{
"display": "{field1}",
"fields": [
{
"name": "field1",
"type": "text"
},
{
"name": "field2",
"type": "text"
}
]
}