| [ | |
| { | |
| "original": { | |
| "title": "Goodbye!", | |
| "author": { | |
| "givenName": "John", | |
| "familyName": "Doe" | |
| }, | |
| "tags": [ "example", "sample" ], | |
| "content": "This will be unchanged" | |
| }, | |
| "expected": { | |
| "title": "Hello!", | |
| "phoneNumber": "+01-123-456-7890", | |
| "author": { | |
| "familyName": null | |
| }, | |
| "tags": [ "example" ] | |
| }, | |
| "target": { | |
| "title": "Hello!", | |
| "author": { | |
| "givenName": "John" | |
| }, | |
| "tags": [ "example" ], | |
| "content": "This will be unchanged", | |
| "phoneNumber": "+01-123-456-7890" | |
| } | |
| }, | |
| { | |
| "original": {}, | |
| "expected": {"a": {"b":"c"}}, | |
| "target": {"a":{"b":"c"}} | |
| }, | |
| { | |
| "original": {"a":"foo"}, | |
| "expected": "bar", | |
| "target": "bar" | |
| }, | |
| { | |
| "original": {"a":"foo"}, | |
| "expected": null, | |
| "target": null | |
| }, | |
| { | |
| "original": { "c": "d" }, | |
| "expected": { "a": "b" }, | |
| "target": { "a": "b", "c": "d" } | |
| }, | |
| { | |
| "original": { "a": { "d": 2 } }, | |
| "expected": { "a": { "d": 1 } }, | |
| "target": { "a": { "d": 1 } } | |
| }, | |
| { | |
| "original": { "a": "b", "c": "d" }, | |
| "expected": { "c": null }, | |
| "target": { "a": "b" } | |
| } | |
| ] |