Commit 753eaad
Clarify stdJson key syntax (#832)
The `stdJson` docs currently use a generic `<json_path>` placeholder,
but the API actually expects the same selector syntax as
`vm.parseJson*`. The existing tests already show the real usage with
`.a` for a field and `$` for the root object in `test/StdJson.t.sol`, so
the current comments are easy to misread.
This updates the `StdJson` examples and function docs to match the
behavior that is already implemented and tested today. It is a
comment-only change with no ABI or runtime impact, just a documentation
fix that makes the interface clearer and more accurate.
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>1 parent e4cc8e2 commit 753eaad
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
0 commit comments