Skip to content

Commit c5308d6

Browse files
authored
Update README.md
1 parent 655d1fa commit c5308d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ pets.json
3232
```
3333
let json = LazyJson.create("/test/specs/definitions/pets.json"); // argument can also be a json object itself
3434
35-
console.log(json.properties.cat.required);
35+
json.properties.cat.required
3636
> ["name", "breed", "age"]
3737
38-
console.log(json.properties.dog.type);
38+
json.properties.dog.type
3939
> "object"
4040
4141
```
4242

43-
**What is special about that?**
43+
**What's special about it?**
4444

4545
The reference is resolved lazy on request (**not** in `LazyJson.create`) without any additional function call or de-reference handling. Works also with referencing .json files. That's ~crazy~ lazy, isn't it?
4646

0 commit comments

Comments
 (0)