CorentinTh / it-tools

Collection of handy online tools for developers, with great UX.
https://it-tools.tech
GNU General Public License v3.0
23.13k stars 2.8k forks source link

Add example code in JSON to CSV #1145

Open Swamp2k9 opened 5 months ago

Swamp2k9 commented 5 months ago

What type of request is this?

New tool idea

Clear and concise description of the feature you are proposing

It would be great to have an example JSON loaded on the JSON to CSV page.

Something like the below:

[ {'Age': 18.0, 'Salary': 20000.0, 'Gender': 'Male', 'Country': 'Germany', 'Purchased': 'N'}, {'Age': 19.0, 'Salary': 22000.0, 'Gender': 'Female', 'Country': 'France', 'Purchased': 'N'}, {'Age': 20.0, 'Salary': 24000.0, 'Gender': 'Female', 'Country': 'England', 'Purchased': 'N'} ]

Is their example of this tool in the wild?

No response

Additional context

No response

Validations

gitmotion commented 1 month ago

@Swamp2k9 added default example value in pr: https://github.com/CorentinTh/it-tools/pull/1355

gitmotion commented 1 month ago

@Swamp2k9

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

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