You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,15 @@ pets.json
32
32
```
33
33
let json = LazyJson.create("/test/specs/definitions/pets.json"); // argument can also be a json object itself
34
34
35
-
console.log(json.properties.cat.required);
35
+
json.properties.cat.required
36
36
> ["name", "breed", "age"]
37
37
38
-
console.log(json.properties.dog.type);
38
+
json.properties.dog.type
39
39
> "object"
40
40
41
41
```
42
42
43
-
**What is special about that?**
43
+
**What's special about it?**
44
44
45
45
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?
0 commit comments