Boop icon indicating copy to clipboard operation
Boop copied to clipboard

Create Stringify.js

Open rcalixte opened this issue 3 years ago • 4 comments

Adds a script to run JSON.stringify() over input but that Boop returns a usable JSON string object.

Example input:

{
  "json": [
    "abc",
    "def"
  ]
}

returns:

"{\"json\": [\"abc\",\"def\"]}"

rcalixte avatar Dec 02 '21 18:12 rcalixte

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 02 '21 18:12 sonarqubecloud[bot]

This is a great addition! Saves me from having to go to https://onlinejsontools.com/stringify-json or opening a console window in Firefox!

Also, as an aside, if you don't remove the \n, sometimes will choke (AWS secrets manager CLI, I'm looking at you)

Melvin-Ross-PillPack avatar Dec 02 '21 18:12 Melvin-Ross-PillPack

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Nov 15 '23 20:11 sonarqubecloud[bot]

Is there any unstringify also?

krishna81m avatar Dec 21 '23 17:12 krishna81m