Runtime: Why the new JSON APIs under the namespace `System.Text.Json.Serialization` and not `System.Json`

Created on 1 Apr 2019  路  2Comments  路  Source: dotnet/runtime

Follows https://github.com/dotnet/corefx/issues/34372#issuecomment-465916976
The current JSON APIs naming is so long and not clear, Why it can't be more simple? (Please see the example in the comment link above)

area-System.Text.Json

Most helpful comment

From my comment on the referenced issue:

The types in System.Json are, if I remember correctly, a throwback to Silverlight 3. They constitute a legacy API and don't conflict (in naming) to the types in the new JSON API. It seems like the new JSON APIs should be in a System.Json namespace as well since that seems (to me at least) to be the more natural container and is also consistent with the use of the System.Xml namespace to contain all types that are XML related.

All 2 comments

From my comment on the referenced issue:

The types in System.Json are, if I remember correctly, a throwback to Silverlight 3. They constitute a legacy API and don't conflict (in naming) to the types in the new JSON API. It seems like the new JSON APIs should be in a System.Json namespace as well since that seems (to me at least) to be the more natural container and is also consistent with the use of the System.Xml namespace to contain all types that are XML related.

I believe that decision is closed.

https://github.com/dotnet/corefx/issues/34372#issuecomment-481755586

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omajid picture omajid  路  3Comments

chunseoklee picture chunseoklee  路  3Comments

bencz picture bencz  路  3Comments

jzabroski picture jzabroski  路  3Comments

btecu picture btecu  路  3Comments