I'll just access the API I need within the authentication context of my app. Anything I would want to do with the JSON data is directly available in the devtools console. It has the added benefit of copying/pasting rough code I write in the console into my IDE to continue the work.
Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
11–20 of 28 posts
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#12Earlier quoted context omitted.
That's fair. CORS is a bitch.
YEs, CORS is the reason for this and the code for this proxy is open source and very simple[0]. I didn't want to add disclaimers to clutter the UI nor did I wanted to build a browser extension as it would suffer from same trust issues (you still need to trust the extension developer). For full transparency, the proxy is hosted on Zeit's `now` service and I don't even have access to logs so accidental leaks should be…
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#13Earlier quoted context omitted.
That's fair. CORS is a bitch.
YEs, CORS is the reason for this and the code for this proxy is open source and very simple[0]. I didn't want to add disclaimers to clutter the UI nor did I wanted to build a browser extension as it would suffer from same trust issues (you still need to trust the extension developer). For full transparency, the proxy is hosted on Zeit's `now` service and I don't even have access to logs so accidental leaks should be…
If this is really being just run as a proxy setup, the jsonbrowse-proxy might not need the isomorphic-fetch lib, in which case you can just use the embedded node-fetch instead, which has max response size and timeout options available.
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#14Updated my jsonlint.com bookmark to jsonbrowse.com. Thanks for the nifty tool!
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#15Chrome devtools? I feel the collapsed tree visualization of parsed JSON is already sufficient. I'll just access the API I need within the authentication context of my app. Anything I would want to do with the JSON data is directly available in the devtools console. It has the added benefit of copying/pasting rough code I write in the console into my IDE to continue the work.
For example, in a JSON payload that has an array of 15 objects, I would like to see all IDs of those objects. The output would be something like [1230, 134, 65, 99]. I like looking at that vs scrolling and collapsing a bunch of objects.
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#16Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#17I think the most useful feature here is JSON -> JS conversion. Relatively often I find myself copying and pasting some JSON into a JS file then manually deleting / regexing away the unnecessary quote marks around key names.
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#18I think the most useful feature here is JSON -> JS conversion. Relatively often I find myself copying and pasting some JSON into a JS file then manually deleting / regexing away the unnecessary quote marks around key names.
Other than being idiomatic, is there any advantage to quoting or not quoting key names in JS?
Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#19I think the most useful feature here is JSON -> JS conversion. Relatively often I find myself copying and pasting some JSON into a JS file then manually deleting / regexing away the unnecessary quote marks around key names.
var foo = "bar";
var baz = {
foo: "qux"
};Re: Show HN: JSON Browse – Fetch, filter and manipulate your JSON inside the browser
#20I think the most useful feature here is JSON -> JS conversion. Relatively often I find myself copying and pasting some JSON into a JS file then manually deleting / regexing away the unnecessary quote marks around key names.