bazinga icon indicating copy to clipboard operation
bazinga copied to clipboard

json formatter support backslash unescape

Open sunfuze opened this issue 2 years ago • 5 comments

support backslash unescape

sunfuze avatar Jul 08 '22 05:07 sunfuze

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
bazinga ✅ Ready (Inspect) Visit Preview Jul 8, 2022 at 5:56AM (UTC)

vercel[bot] avatar Jul 08 '22 05:07 vercel[bot]

Hey @sunfuze 👋 ,

Thanks for the pull request! I'm wondering what's the main purpose/use case of this change?

luin avatar Jul 09 '22 03:07 luin

We use Archery as database manager, it append backslash when field is json.

Example: image

So it is usable in this case to remove backslash when format json content.

sunfuze avatar Jul 10 '22 02:07 sunfuze

Another case is: our log system use json as output format, if some log field is json string, the output of that field will be appended backslash before '"'.

sunfuze avatar Jul 10 '22 05:07 sunfuze