Live data from Hacker News

JSON Hero: Enhanced JSON structure visualization

jsonhero.io

191–200 of 203 posts

Re: JSON Hero: Enhanced JSON structure visualization

#191

Earlier quoted context omitted.

For my use case that doesn't really help at all. So I'm doing request/response in JSON with a third-party API and I want to programmatically detect if their response is valid, not based on any rules the API can know, but based on the context of my integration. So I use JSON schema to define what valid responses (for my particular application/integration) look like. How I do this now, is to get an example response, au…

I got you now. The data comes from an external source, and then you wanted to infer json schema from it. So I guess the json response from APIs don't have json schema defined for you. But you could define schema from their api documentation, right? It doesn't matter what tool used to generate the json schema, we only care about the result that is the schema so that you can it wherever. Trust me on JSON Schema spec, i…

> the json response from APIs don't have json schema defined for you. But you could define schema from their api documentation, right?

Yes exactly.

> it's been in draft for a decade

https://json-schema.org/blog/posts/future-of-json-schema#sta... https://github.com/json-schema-org/community/discussions/69

I can see they're working on this issue. Hopefully they get it resolved sooner rather than later.

Re: JSON Hero: Enhanced JSON structure visualization

#192

Earlier quoted context omitted.

I got you now. The data comes from an external source, and then you wanted to infer json schema from it. So I guess the json response from APIs don't have json schema defined for you. But you could define schema from their api documentation, right? It doesn't matter what tool used to generate the json schema, we only care about the result that is the schema so that you can it wherever. Trust me on JSON Schema spec, i…

> the json response from APIs don't have json schema defined for you. But you could define schema from their api documentation, right? Yes exactly. > it's been in draft for a decade https://json-schema.org/blog/posts/future-of-json-schema#sta... https://github.com/json-schema-org/community/discussions/69 I can see they're working on this issue. Hopefully they get it resolved sooner rather than later.

I'm bearish on the spec. I think it's practically done since draft-4 or draft-7. Almost nobody is going to use something like dynamic scope recursion, and bundle (compound document), unless libs force them to.

Re: JSON Hero: Enhanced JSON structure visualization

#194

Earlier quoted context omitted.

Browsers should make it easier to interact with the command line then. I want to be able to run a command and it opens the result in a browser tab.

Every browser I've used supports passing a URL as an argument, and that URL is then opened.

There’s probably some limit on that. JSON files are commonly 10s of MBs.

Re: JSON Hero: Enhanced JSON structure visualization

#195

JSON is actually a really good format, I disagree with their premise "JSON sucks". Like, sure it's got some use cases it doesn't handle well, but overall there's a reason it won.

The lack of ability to concretely define data structures is a huge pain, both when using it and when writing libraries to process it. You can throw JsonSchema at it, but now you have two problems. Can't use comments to try to work around that deficiency, even just to communicate intent to someone looking at an example record, at least not in vanilla json. Record streaming—basically necessary at anything resembling "s…

I use JSON Schema written in JSON5. That at least fixes the commenting problem.

Re: JSON Hero: Enhanced JSON structure visualization

#196
post #149
post #146

Earlier quoted context omitted.

Well, dotnet DOES mention it in getting started (first run): Telemetry --------- The .NET tools collect usage data in order to help us improve your experience. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell. Read more about .NET CLI Tools telemetry: https://aka.ms/…

It sends telemetry as part of the installation, too. It is implementing a deliberately dark pattern as well. It should be an option presented right at the installer screen, _and_ should be default to opt-out.

>_and_ should be default to opt-out.

Here I don't agree. It should be certainly be visible, so you can make an informed decision whether or not to use it. But it's a sad fact of human nature how little we are willing to contribute back even when people give us something for free, even if just a click away (not to mention paying a small amount, filling a bug report...)

Re: JSON Hero: Enhanced JSON structure visualization

#197
post #161

"JSON Sucks". It really doesn't though.

Not as readable as YAML/TOML. Vastly less if unindented. More annoying to write than YAML/TOML, no trailing comma. Yes I'd rank it lower than YAML even with its whitespace annoyances, good editor handle that, JSON is still annoying. Not super compact (althought it's not too bad when compressed). No proper numeric types, just one "sorta int, sorta float, depends on parser, say farewell to NaNs and infinities", you can…

"Good enough" is realistic in my opinion.

Re: JSON Hero: Enhanced JSON structure visualization

#199
post #48
post #31

My number one requirement for a tool like this is that the JSON content never leaves the machine it's on. I can only imagine the kind of personal information or proprietary internal data that has been unwittingly transmitted due to tools like this. If my objective was to gain the secrets of various worldwide entities, one of the first things I would do is set up seemingly innocent Pastebins, JSON checkers, online fil…

Eric here (one of the creators of JSON Hero) and this is a really good point. We built JSON Hero earlier this year and partly wanted to use it to try out Cloudflare Workers and Remix, hence the decision to store in KV and use that kind of architecture. We're keen to update JSON Hero with better local-only support for this reason, and to make it easier to self-host or run locally.

Try WASM.

Re: JSON Hero: Enhanced JSON structure visualization

#200
post #38
post #5

I like it, but don't love that it's a web app. I guess I could fork it myself, but don't particularly want to have to run a web app to browser JSON either. I wonder how easy it would be to port to Electron.

You are aware that Electron is just a stripped down browser, right?

[deleted]
Post reply on HN