Hey there! I was looking at the new feature you've added for handling list responses as json and I saw that the code tries to run toJson on all items in the list even if the any of them doesn't match.
This change may be negligible in terms of performance, but maybe it could add up with bigger lists and many requests. Every failure involves a dynamic method call, a try catch and a String contains.
Before:
After:
Let me know what you think.
Thanks for the work on the package!
Hey there! I was looking at the new feature you've added for handling list responses as json and I saw that the code tries to run
toJson
on all items in the list even if the any of them doesn't match. This change may be negligible in terms of performance, but maybe it could add up with bigger lists and many requests. Every failure involves a dynamic method call, a try catch and a String contains.Before:
After:
Let me know what you think. Thanks for the work on the package!