JuliaIO / JSON.jl

JSON parsing and printing
Other
313 stars 101 forks source link

Use more specific type for arrays of objects #278

Closed leo60228 closed 4 years ago

leo60228 commented 5 years ago

Currently, typeof(JSON.parse("""{"arr": [{"a": "b"}, {"c": "d"}]}""")["arr"]) is Any[], despite typeof(JSON.parse("""{"arr": [{"a": "b"}, {"c": "d"}]}""")["arr"][1]) and typeof(JSON.parse("""{"arr": [{"a": "b"}, {"c": "d"}]}""")["arr"][2]) both being Dict{String, Any}.

TotalVerb commented 4 years ago

duplicate of #139