an api that returns a json which comes in 3 different forms, i have 3 data classes which represent a model of each of those jsons, how can i deserialize the json to the correct class type generically?
I didn't understand, but maybe this will help you https://wiki.lazarus.freepascal.org/Streaming_JSON
I'm sending a request to an API and depending on a parameter that I'm sending it might return a JSON response that may vary
Обсуждают сегодня