3 ms·
Well, this wouldn’t be a very satisfying explanation, but these JSON objects are often represented as Python dictionaries and those can’t have top level arrays.
by tomComb 2y ago
Well, this wouldn’t be a very satisfying explanation, but these JSON objects are often represented as Python dictionaries and those can’t have top level arrays.
- Too 2y agoTry json.loads("[1,2,3]"), you'll get a list back. The reasons others already posted about extensibility are more correct.