triggerdotdev/jsonhero-web

Add an easy way to copy the entire JSON or download it

AndrianBalanescu opened this issue · 5 comments

Please add this feature.

What would be the appropriate place to put the download button?

There's a way to copy entire json. On the left side where the json is displayed you can hover on it to find the copy button.
image

There is another copy button under path which also appears on hover. This is not what you are looking for but it might be confusing.
image

Yea I've wanted a "View Raw JSON" button in the past, not sure where it would go though. There is a little known feature that if you add .json to the url it displays the raw JSON so we could use that.

image
Would this work? IMO it isn't great.

CleanShot 2022-10-09 at 16 12 57@2x

Why don't we replace this icon with the download icon and make that a <a target="_blank"> to the path with .json appended?