36 { "op": "test", "path": "/a/b/c", "value": "foo" }, 37 { "op": "remove", "path": "/a/b/c" }, 38 { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }, 39 { "op": "replace", "path": "/a/b/c", "value": 42 }, 40 { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }, 41 { "op": "copy", "from": "/a/b/d", "path": "/a/b/e" } 43 auto const expected = std::vector<json_patch::patch_operation>{
80 json_patch::try_parse(dynamic::array(dynamic::array()))
92 json_patch::try_parse( 99 json_patch::try_parse( 112 json_patch::try_parse( 119 json_patch::try_parse( 126 json_patch::try_parse( 133 json_patch::try_parse( 135 R"([{"op": "copy", "from" : "c/d/e", "path" : "/a/b/c"}])")) 141 json_patch::try_parse( 143 R"([{"op": "move", "from" : "/a/b/c", "path" : "/a/b/c"}])")) 149 json_patch::try_parse( 151 R"([{"op": "move", "from" : "/a/b/c", "path" : "/a/b/c/d"}])")) 159 json_patch::try_parse(
166 json_patch::try_parse( 173 json_patch::try_parse( 180 json_patch::try_parse( 189 { "op": "test", "path": "/a/b/c", "value": "foo" }, 190 { "op": "remove", "path": "/a/b/c" }, 191 { "op": "add", "path": "/a/b/c" } 194 auto err = json_patch::try_parse(jsonObj).error();
size_t parse(const char *buf, size_t len)
TEST_F(JsonPatchTest, ValidPatch)
dynamic parseJson(StringPiece range)
#define EXPECT_EQ(val1, val2)
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)