-
Type:
Improvement
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Serialization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Introduce a small static class to contain a few JSON related useful helper methods.
public static class Json { public T Parse<T>(string json); public T Parse<T>(string json, params[] BsonValue values); // for when we support parsing JSON strings with placeholders public T Parse<T>(string json, IBsonSerializer<T> serializer); public T Parse<T>(string json, IBsonSerializer<T> serializer, params[] BsonValue values); public string ToJson<T>(T value); public string ToJson<T>(T value, IBsonSerializer<T> serializer); // and probably more, but this gives the idea }
This would also be a step along the way of removing the ToJson extension methods defined on object, which ended up polluting the global namespace.
- related to
-
CSHARP-1119 Introduce a Bson static class with a few BSON related helper methods
-
- Closed
-