Tag: JSON
-
Fly.io, Uptime Kuma & scraping a status page
I’ve been aware since I set up Uptime Kuma for my monitoring, that having an instance on my local network monitoring my VPS websites wasn’t ideal. The main reason being that the flakiest part of my infrastructure is my 4G home internet, so if that goes down I have no website monitoring, and even if…
-
Codable when the keys don’t match
A common issue when working with JSON that you vacuum up from internet APIs will be that the key names in the JSON don’t match your property names. The JSON de facto standard of using snake_case in key names could be one cause, or perhaps you just take variable naming more seriously than the person…
-
Updating stored JSON due to a struct change
I mentioned yesterday “I could use a renamed old version of my struct to load the existing data, and convert it across to the new model.“. Since I’ve been testing the app on my phone, and using plausible data, it was going to be painful enough to lose it that I thought I should go…
-
JSON encode/decode
As usual, I’m spending way more time on the apps written from scratch in the 100Days series. The Habit tracking app I’m working on has been good practice, especially of the architecture of the simple list based app. My version has a couple of refinements I quite like. I’m using a checkmark in a rectangle…