Repository navigation
Writable Json DOM - JsonNumber implementation and tests - #39917
35 commits merged into
Conversation
Basic API for Json writable DOM with scenarios including collection initialization, accessing and modifying Json nodes.
* transformation API added * assertions to existing scenarios added
Basic API for Json writable DOM with scenarios including collection initialization, accessing and modifying Json nodes.
* transformation API added * assertions to existing scenarios added
* IEquatables added * JsonNumber implementation and unit tests added * pragmas deleted * review comments included, more tests added * decimal support added to JsonNumber * decimal support added to JsonArray and JsonObject
commented
Jul 31, 2019
|
Can you make sure to have an issue tracking the API review? |
commented
Jul 31, 2019
|
I created an issue: #39922 and added a PR in my fork with specification: kasiabulat#4. |
commented
Jul 31, 2019
|
We will want that spec checked-in to corefx main fork as well, so do you mind sending another PR to merge that here as well plz? |
|
🎉 CI works! 🎉 |
commented
Aug 7, 2019
Or file an issue to track it, whichever you prefer. |
commented
Aug 8, 2019
|
Hello @kasiabulat! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
|
The MacOS test failure is unrelated (in System.Net.Http.Functional.Tests): https://github.com/dotnet/corefx/issues/40115 |
I am working on adding writable Json DOM under
System.Text.Json. It will be modifiable, dictionary-backed API to complement the readonlyJsonDocument, with type hierarchy consisting of the base typeJsonNode. Currently, I have implementedJsonNumberwhich is supposed to represent Json numeric value. Other derived types which we are planning to add include: JsonString, JsonBoolean, JsonArray and JsonObject.More scenarios are available in this class:
https://github.com/kasiabulat/corefx/blob/master/src/System.Text.Json/tests/WritableJsonApiTests.cs
(also in files: WritableJsonApiTests.TestAccessingNestedMembers.cs, WritableJsonApiTests.TestModifying.cs and WritableJsonApiTests.TestTransformations.cs)
cc: @joperezr @bartonjs @ericstj @ahsonkhan @terrajobst @JamesNK