Skip to content

Commit 0da80f1

Browse files
domis86norberttech
authored andcommitted
README.md - fix example in "Json matching with unbounded arrays and objects" (#190)
Fixed invalid json in part "Json matching with unbounded arrays and objects"
1 parent 9e2e519 commit 0da80f1

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ $matcher->match(
326326
"firstName": "Norbert",
327327
"lastName": "Orzechowicz",
328328
"created": "2014-01-01",
329-
"roles":["ROLE_USER", "ROLE_DEVELOPER"]}
330-
]
329+
"roles":["ROLE_USER", "ROLE_DEVELOPER"]
330+
}
331+
]
331332
}',
332333
'{
333334
"users":[
@@ -360,10 +361,10 @@ $matcher->match(
360361
"firstName": "Norbert",
361362
"lastName": "Orzechowicz",
362363
"created": "2014-01-01",
363-
"roles":["ROLE_USER", "ROLE_DEVELOPER"]},
364+
"roles":["ROLE_USER", "ROLE_DEVELOPER"],
364365
"attributes": {
365366
"isAdmin": false,
366-
"dateOfBirth" null,
367+
"dateOfBirth": null,
367368
"hasEmailVerified": true
368369
},
369370
"avatar": {
@@ -374,10 +375,10 @@ $matcher->match(
374375
"firstName": "Michał",
375376
"lastName": "Dąbrowski",
376377
"created": "2014-01-01",
377-
"roles":["ROLE_USER", "ROLE_DEVELOPER", "ROLE_ADMIN"]},
378+
"roles":["ROLE_USER", "ROLE_DEVELOPER", "ROLE_ADMIN"],
378379
"attributes": {
379380
"isAdmin": true,
380-
"dateOfBirth" null,
381+
"dateOfBirth": null,
381382
"hasEmailVerified": true
382383
},
383384
"avatar": null
@@ -400,8 +401,9 @@ $matcher->match(
400401
},
401402
"avatar": "@[email protected]({\"url\":\"@[email protected]()\"})"
402403
}
403-
],
404-
@...@
404+
,
405+
@...@
406+
]
405407
}'
406408
);
407409
```

0 commit comments

Comments
 (0)