I found this api https://api.met.no/weatherapi/sunrise/2.0/documentation
which pretty accurately tells me when the sun rises and set pretty accurately, but cannot find a proper way to write the payload it needs to have?
is there some builtin library i can use, to format my payload as Json or ?