triggerdotdev/jsonhero-web

Embeddable version of JSON Hero - needed feature

babazookz opened this issue · 6 comments

I am using a JSON Hero tool a lot and whenever I use it, I have to open in another tab and continue browsing the JSON.

So, I was thinking is there a chance to use JSON Hero tool on the same page where I am opening it from - my app page by using <iframe> for example?

@babazookz / @ericallam This seems like a great idea. I would like to work on it. I just need some guidance on how to go on about developing it. Thanks.

Displaying the site in an iframe will probably work already, but I'm assuming we want to hide some of the UI?

Some extra query params could be added to the url, e.g. ?embed=true and that would hide the top nav bar for example.

@matt-aitken Alright, I will take this one. Let's see what I come up with.

@babazookz What's the flow in your mind? How would you want to open JSON Hero in an embedded window? Do you have high-level steps in mind. Like, what should a user do to get to the embedded window. Would be of great help. Thanks.

@babazookz What's the flow in your mind? How would you want to open JSON Hero in an embedded window? Do you have high-level steps in mind. Like, what should a user do to get to the embedded window. Would be of great help. Thanks.

Hey, to be honest, the only thing I have is a high level idea. It goes like this, imagine situation where I want to use JSON hero on my own page as a invokable Modal window.

Lets say I am building an app which works with JSON files and at one point I want to open a JSON file without redirecting towards JSON hero page but invoking the iframe within some Modal window within my personal app.

Did I help you a bit?

@ericallam @babazookz

Hello ,My firends , I used jsoncrack for a months, but I think JSON-HERO is more suitable for me .
It is very to use , and can do much more things than I thought.
Now , I meet the same problem , I want to embe it into my page too.

First , i want to deploy JSON-HERO in my own computer , because it is not very easy for Chinese to visit foreign website( government policy)

For jsoncrack , I can deploy it by run docker build , but I do not know how to do this with JSON-HERO .

Second , I want to embed JSON-HERO into my page too . for jsoncrack (https://codepen.io/AykutSarac/pen/QWBbpqx) , I can use contentWindow.postMessage to pase json text , dose JSON-HERO support this function ? Will you develop this

I not a native English speaker , so my English is very poor .

Thanks for reading my letter