We are filling our API docs in Swagger format which is basically a large JSON file.
Sometimes I need to write really much text into some "description" fields. It can contain many lines of text with formatting and other stuff.
JSON requires all line breaks to be escaped as \n. Which results into that all long strings with line breaks display as extremely long single-line string.
Just try to open this json in PHPStorm (WebStorm or other IDE): https://pastebin.com/SUVNbf1m
Look at how ugly it shows up in IDE: https://recordit.co/uBf7ntOuKf
It would be really cool if the IDE could display newlines in JSON as real newlines.
Even simple line-wrapping function would make my life easier but I can't find such setting.
Any ideas how to deal with it? Maybe there are some neat plugins for this (I searched but no luck)?