3 ms·
> It doesn't support map/tables/dictionaries. This is actually huge. I get that there might be > some pattern where you don't want to allow this but for the ma
by tekknik 4y ago
> It doesn't support map/tables/dictionaries. This is actually huge. I get that there might be
> some pattern where you don't want to allow this but for the majority of situations working with json api's you'll end up with a {[key: string] : T} somewhere
Please don’t use maps in API responses. Rarely do they map well and in all cases you can instead use a list of objects which is substantially easier to parse.