Xcode pro-tip: JSON formatting

stephen
1 min readAug 14, 2017

--

If you have a JSON structure in a source file, you’ve probably ended up with something that looks like this:

v sad

In comes Paste and Preserve Formatting.

+1111 if you remember this keyboard shortcut.

With preserved formatting, we get:

ahh, that’s nice

If you’re like me, and you’re prone to banging your head against the wall, you just silently wept over the painstaking time you’ve wasted indenting jumbled JSON.

*I wasn’t smart enough to figure this out on my own, a beloved coworker shared the tip with me.

--

--