creates a diff as a JSON patch

Synopsis

Declared in <nlohmann/json.hpp>

[[nodiscard]]
static
basic_json
diff(
    basic_json const& source,
    basic_json const& target,
    string_t const& path = "");

Return Value

a class to store JSON values

Note

The return value should not be discarded.

Parameters

Name

Description

source

a class to store JSON values

target

a class to store JSON values

path

a type for a string

Created with MrDocs