question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSON frontend support

See original GitHub issue

Hi, i love wttr.in and have been using it for a lot of personal projects lately. I believe wego supports JSON as an output (specified as a “frontend”, though I haven’t tested this personally). It would be awesome if wttr.in could support JSON output (or specifying any arbitrary frontend I suppose)… maybe something like:

  • GET /Buffalo - buffalo ny weather
  • GET /Buffalo?frontend=json - buffalo ny weather with -f json passed to the wego command

There might need to be some extra processing by wttr.in to specify the appropriate headers to the requesting client to let it know the response is JSON.

If there is interest in this I can take a look at the code and see what I can do

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
chubincommented, May 3, 2020

@xewl Yes, that’s true; thank you for reminding me of this issue. It is fixed now

2reactions
xewlcommented, May 3, 2020

There appears to be a solution built in: ?format=j1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Prototype REST API with JSON for Frontend Newbies ...
This article explains how you can create a test REST API with JSON, make it fully ready for consumption and consume with an...
Read more >
Is JSON front-end or backend? - Quora
It's a data format standard and not used only by front-end or back-end. In fact, it's widely supported and a replacement for XML....
Read more >
JSON only between backend and frontend - Stack Overflow
There are many front end based framework already in market which support a Json very efficiently,some of them are backbone,underscore,angular etc.
Read more >
How to filter 1GB JSON on the frontend and not crash ... - Uptech
I had an interesting task: to display 1GB file and 2 million rows of data on the frontend and implement filtering through several...
Read more >
JSON and its real world use : r/Frontend - Reddit
I can create a JSON object, but where do I put it? ... APIs to communicate from frontend to backend, you can use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found