Skip to content

benjkent/JSONCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONCleaner

Uses Regular Expression to find instances of unwanted ( \ ) backslash escape characters found in JSON responses containing HTML formatted text.

  • \n
  • \ where they preceed another \
  • \ where they preceed /
  • \ where they preceed ""
  • \ where they preceed <
  • \ where they follow =
  • \ where they follow a-z characters
  • \ where they follow 0-9 characters
Prints the output of the resulting replacement, rather omission, of the found characters: backslashes \
  • The purpose is the identification of escape characters present in a JSON response body comprised of Html.

\\n|\\(?=\\)|\\(?=\/)|\\(?=\"")|\\(?=\<)|(?<=\=)\\|(?<=[a-z])\\|(?<=[0-9])\\|/gm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages