Conversation
stephentoub
left a comment
There was a problem hiding this comment.
The description here says "addresses: #39922", but this only adds a few of the types, and the PR doesn't actually allow for these to be used in any meaningful way. Should we wait to merge this until it's actually possible to construct a JsonDocument from these? Otherwise we're sort of adding dead code / public surface area.
This represents individually usable / testable chunks of the overall feature. We're OK with checking them in those chunks as we've committed to finishing the whole feature. If for some reason we cannot finish we'll pull out these chunks, but I don't forsee that happening. |
testable, yes. usable, no. But ok; it's fine if we're committed to either finishing it or backing this out. |
|
Something to figure out is what happens when you call ToString on these types. Do you return the JSON representation or the .NET representation? JsonBoolean b = new JsonBoolean(true);
b.ToString(); // "True" or "true"That question becomes important around |
It was so null checks ( |
|
Why is |
* API to implement added * JsonBoolean implementation added * JsonString implementation added * JsonBoolean tests added * JsonString tests added * review comments included * 100% lines and branches covered * framework fixes Commit migrated from dotnet/corefx@a7c0f96
I added
JsonStringandJsonBooleanimplementation.addresses: #39922
cc: @joperezr @bartonjs @ericstj @ahsonkhan @terrajobst @JamesNK