You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move JsonSerializer to the root namespace - System.Text.Json #29639
Motivation:
Since JsonSerializer is the more commonly used API, move it to the root namespace. This means move JsonSerializer and JsonSerializerOptions into the root namespace, System.Text.Json:
Should we move the internal types used by the JsonSerializer to System.Text.Json namespace ?
Sure.
For the three file moves let's be sure to coordinate with other active PRs and be sure to preserve git history.
Actually, I don't think we want to physically move any files in the repo. The reader\writer\document all have their own directories even though they are in the root System.Text.Json namespace.
The reader\writer\document all have their own directories even though they are in the root System.Text.Json namespace.
All the files in reader\writer\document are in the same namespace. If we dont move the files, some of the files\classes will be in System.Text.Json and some System.Text.Json.Serialization
Per offline discussion, I agree with this concern. However since we already have a mix of physical folders and namespaces that don't align we should refactor all of this after the usability studies and when we know the namespaces are correct (if we agree it makes sense to do that at that time).
Otherwise it just adds short-team overhead and the possibility of additional file moves.
Activity
rynowak commentedon May 23, 2019
Keep the nested namespace as
root.Serialization.P.S. This was written by @ahsonkhan (on Ryan's machine).
steveharter commentedon May 23, 2019
For the three file moves let's be sure to coordinate with other active PRs and be sure to preserve git history.
paulomorgado commentedon May 23, 2019
I can't help to think that this should me more in pair with XML.
For starters, it should be
System.JsonandSystem.Json.Serializationas it isSystem.XmlandSystem.Xml.Serializationand so on.Anipik commentedon May 24, 2019
@ahsonkhan should we move the internal types used by the JsonSerializer to System.Text.Json namespace ?
ahsonkhan commentedon May 24, 2019
I would say yes, but just confirm with @steveharter.
steveharter commentedon May 24, 2019
Sure.
Actually, I don't think we want to physically move any files in the repo. The reader\writer\document all have their own directories even though they are in the root
System.Text.Jsonnamespace.Anipik commentedon May 24, 2019
All the files in reader\writer\document are in the same namespace. If we dont move the files, some of the files\classes will be in System.Text.Json and some System.Text.Json.Serialization
steveharter commentedon May 24, 2019
Per offline discussion, I agree with this concern. However since we already have a mix of physical folders and namespaces that don't align we should refactor all of this after the usability studies and when we know the namespaces are correct (if we agree it makes sense to do that at that time).
Otherwise it just adds short-team overhead and the possibility of additional file moves.