Is there a quicker way to create more entries of form { "name": FIELD_NAME, "type": "string" }
from a list of words down below, than recording a macro to process each word and then pasting the result in place?
{
"namespace": "my-space",
"type": "record",
"name": "Transaction",
"fields": [
{ "name": "transaction_id", "type": "string" }
]
}
# Fields
first_name
last_name
amount
currency
transaction_date
I was hoping for an alternative approach where I could use a template string and then use the list of words to create substituted entry for each, so:
{ "name": "PLACEHOLDER", "type": "string" } => { "name": "first_name", "type": "string" }
{ "name": "last_name", "type": "string" }
...
I'm happy to use the macros, but something along the lines of the above would be more intuitive for me (and hopefully for others, too).