Select to view content in your preferred language

json formatting

492
2
02-13-2018 02:52 PM
CCWeedcontrol
Frequent Contributor

Json file does not stay formatted. I 've been working on WAB Dev. When i open a json file in Atom and make edits, save and close, then say i make changes in WAB developer and go back to Json file in Atom it's not formatted, which i formatted it correctly prior to making changes in WAB Dev. I have to go back to jsonLint web site to get it formatted correctly. Why does this happen, what do i need to make sure the json file doesn't get unformatted?

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

CC,

   It looks like in the 2.7 the main config.json is minified when the app is saved. Which is actually a good thing based on the amount of json that is stored in there. If you are using Atom then I would suggest that you get the Atom Beautify plugin so that you can just right click and choose "Beautify editor contents" or use Ctrl +_ Alt + B.

CCWeedcontrol
Frequent Contributor

Nice!, thank you Robert!

0 Kudos