Skip to content

Commit 2974b6b

Browse files
authored
Update README.md
1 parent 3a47088 commit 2974b6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Example:
1010
// This step doesn't do the actual patching!
1111
1212
let patchedJSONContent: PatchedJSON = Content(fileURL: someJSONFileURL) {
13+
1314
Add(address: "/users/-", jsonContent: "alex")
15+
Add(address: "/users/-", jsonContent: [1, "hi", 5.0])
16+
// note: please use `null` and never `nil` to mean JSON's `null`
17+
Add(address: "/users/-", jsonContent: null)
1418
1519
Remove(address: "/temp/log")
1620

0 commit comments

Comments
 (0)