Home > Mobile >  Can you tell me the line of super-long json the editor? To ensure the non-breaking, line number is 1
Can you tell me the line of super-long json the editor? To ensure the non-breaking, line number is 1

Time:10-31

Project has a lot of urls with json format in a file, only one line,
What tools can easily edit

CodePudding user response:

Json online viewer view at http://www.bejson.com/jsonviewernew/

CodePudding user response:

The editing becomes n line, what I want is 1 row, and then I found a website, http://tool.lu/json/
Now and there's a problem to escape and remove escaping, both transfers, baidu search for web site will not put "//" to "\ \/"

CodePudding user response:

refer to the second floor qq_33792306 response:
this editing becomes n line, what I want is 1 row, and then I found a website, http://tool.lu/json/
Now there is a problem is to escape and remove escaping, both transfers, baidu search for web site will not put "//" into "////"

This is very simple, you now in eclipse CTRL + f, fill in the find/replace with fill in \ \/click the replace all around

CodePudding user response:

Also, such a simple thought, thanks

CodePudding user response:

Can use a text editor to modify, like notepad + + has a plug-in to implement this function

CodePudding user response:

Save the json file plus, indent=4

With the open ('./XXX. Json ', 'w') as f:
Json. Dump (jstring, f, indent=4)

CodePudding user response:

If a newline, open all the regular patterns of line breaks into space

CodePudding user response:

Finish with VSCODE formatting, modify, online to find a JSON compression under compression tool
  • Related