Search: /^ ([a-zA-Z]+): {\n( +)/
Replace: / $1: {\n$2id: '$1',\n$2/
Example:
{ => {
name: { => name: {
property1: 'Property 1' => id: 'name', // Added
} => property1: 'Property 1',
} => }
=> }