You can simply replace } with }\n. That will preserve the curly brackets and add a line break after each one.
}
}\n