AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Write a JSON Package That Doesn't Use Reflect
I wrote a little, it's not finished. It's basically a fake JSON data generator. So you pass in any data. I decode into structs most of the time. Well, if you're writing anything where you don't know the data structure, some APIs do do that. And so in that sort of case, yeah, we would want people to be able to pass in any kind of API hosted on a website,. including an array of objects as well as a single object. That was the idea.