MCPcopy Create free account
hub / github.com/cybereality/Perception / basic_json diff

Function basic_json diff

Perception/dependecies/json/json.hpp:24957–25080  ·  view source on GitHub ↗

! @brief creates a diff as a JSON patch Creates a [JSON Patch](http://jsonpatch.com) so that value @a source can be changed into the value @a target by calling @ref patch function. @invariant For two JSON values @a source and @a target, the following code yields always `true`: @code {.cpp} source.patch(diff(source, target)) == target; @endcode @note Currently

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 10

escapeFunction · 0.85
typeMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
keyMethod · 0.45
findMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected