it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

JSON Stringify Tool

Open gitmotion opened this issue 1 year ago • 1 comments

What type of request is this?

New tool idea

Clear and concise description of the feature you are proposing

Ability to paste in text and return it in json-compatible format using JSON stringify

For Example: Paste in text with line breaks and it should return the json version of it escaping the linebreaks with \r\n

Is their example of this tool in the wild?

https://jsonformatter.org/json-stringify-online

Additional context

No response

Validations

  • [X] Check the feature is not already implemented in the project.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).

gitmotion avatar Oct 17 '24 17:10 gitmotion

added json stringify / parse tool in PR: https://github.com/CorentinTh/it-tools/pull/1351 demo

gitmotion avatar Oct 17 '24 23:10 gitmotion

since PRs are a bit backed up you can use this image in your docker-compose file if you want this functionality along with my other additions as well until the main branch has been updated:

docker image:

ghcr.io/gitmotion/it-tools:latest
  • you may need to clear cache and hard reload to get new features loading

OR locally

from github repo (copy & paste oneliner):

git clone -b gitmotion/main https://github.com/gitmotion/it-tools.git && cd it-tools/ && pnpm i && pnpm dev
  • (installing packages for the first time may take some time but wait till it finishes)

gitmotion avatar Oct 23 '24 03:10 gitmotion

Nice, is this going to be merge into the latest?

rheh avatar Oct 19 '25 18:10 rheh

Hi @rheh (and @gitmotion ), merged in my fork: https://sharevb-it-tools.vercel.app/json-string-converter

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Oct 19 '25 21:10 sharevb