Reduce json response size

  • 1
  • Question
  • Updated 3 years ago
Hi there,

I am trying to get and display weather data on wearables that do not have a lot of processing power or memory.

A normal json response file (e.g. a standard forecast) weighs 7KB. Transferring 7KB to the wearable and parsing it takes several seconds to dozens of seconds.

It would be great to have a smaller json response set, i.e. instead of getting all the information from the standard response set, I would prefer to get a minimalist response set including only date, city name, high/low temps for the day in C and F, condition (word describing weather) and icon name. (Ideally, the GET string could list the required fields in a light/short way).

The response would then take less than 300 bytes, rather than 7000 bytes, dividing by 20 the processing and display time.

Is this a possibility in the Wunderground API?

Photo of Julien Villa-Massone

Julien Villa-Massone

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1

Be the first to post a reply!