A free utility (mlsfmt) which simplifies a usage of multiline string constants.
Say you need to pass following json as a string:
"items": [{
"id": "11111111-2222-3333-4444-555555555555",
"name": "Test name",
"quantity": 999,
"subItems": [{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "subitem 1"
}, {
"id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
"name": "subitem 2"
}]
}]
Usually you will enclose every line in apostrophes, join the lines together with an ampersand &, append line continuation symbol |, care about left curly braces, left angle brackets, the apostrophes.
The utility automates this job: just paste raw text into the top textbox, and get formatted string in the bottom textbox and in Clipboard.
Home page: https://github.com/mikeduglas/Multiline-strings-formatter