json
json copied to clipboard
set_at_pointer
Fix #700
This implementation makes these choices:
- Nulls are replaced when creating intermediaries.
- When creating intermediaries segments are always treated as object keys, (that is only objects are created as intermediaries).
- Arrays are extended by 1 element at most.
Codecov Report
Merging #713 (36cb433) into develop (c650832) will increase coverage by
0.13%
. The diff coverage is100.00%
.
:exclamation: Current head 36cb433 differs from pull request most recent head a210032. Consider uploading reports for the commit a210032 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## develop #713 +/- ##
===========================================
+ Coverage 99.00% 99.13% +0.13%
===========================================
Files 70 69 -1
Lines 6802 6613 -189
===========================================
- Hits 6734 6556 -178
+ Misses 68 57 -11
Impacted Files | Coverage Δ | |
---|---|---|
include/boost/json/value.hpp | 98.91% <ø> (-0.05%) |
:arrow_down: |
include/boost/json/value_ref.hpp | 100.00% <ø> (ø) |
|
include/boost/json/impl/pointer.ipp | 100.00% <100.00%> (ø) |
|
include/boost/json/array.hpp | 100.00% <0.00%> (ø) |
|
include/boost/json/object.hpp | 100.00% <0.00%> (ø) |
|
include/boost/json/string.hpp | 100.00% <0.00%> (ø) |
|
include/boost/json/value_to.hpp | 100.00% <0.00%> (ø) |
|
include/boost/json/impl/array.hpp | 100.00% <0.00%> (ø) |
|
include/boost/json/impl/array.ipp | 100.00% <0.00%> (ø) |
|
... and 22 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c650832...a210032. Read the comment docs.
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
Why did performance change
Mystery to me too
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
Kind of a long section name though
If it doesn't already say so, the javadoc / exposition for value_ref
should explain that objects of that type should only be declared as function parameters. Never as class members, local variables, or objects with static storage duration.
The decision to only create objects along the way seems unintuitive and controversial. What do other implementations of JSON Pointer do? What is the rationale for this?
This PR is not ready... needs work :)
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html
An automated preview of the documentation is available at https://713.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html
Benchmark test results. More info at https://benchmark.cppalliance.org/jsonbenchmarks-pullrequests/713/pullrequest.html