COMMUNITY

Should Json.parse use the Any type?

I think explicitly specifying Dynamic or a particular type would be great for json/xml parsers. There are certain reasons not to do this in std?

I think it’s just because Any came later than Json.parse and noone wanted to break backward-compatibility. I remember @ncannasse at that time was in favor of adding an #if flag to make standard library types use Any instead of Dynamic, but I don’t know if that opinion still stands :slight_smile:

1 Like