Comment by gpderetta
how would you represent an arbitrary JSON array in python then? A potentially heterogeneous list seems the obvious solution.
how would you represent an arbitrary JSON array in python then? A potentially heterogeneous list seems the obvious solution.
Why would I want to do that? I'm rarely ingesting arbitrary JSON. Rather I'm designing my data structures in a sensible way and then maybe serializing them to JSON. Just because JSON can represent heterogenous lists doesn't mean it is a good idea to use heterogenous lists in my programs.