We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
key
The current documentation for the JSON cheats does not explain that the key parameter must be provided with a leading dot:
forge-std/src/Vm.sol
Lines 213 to 239 in e8a047e
I was trying to access the key by its simple name, like so:
string memory json = '{"bar":"Hello World"}'; string memory bar = vm.parseJsonString(json, "bar");
And that didn't work until I added the leading dot, i.e. .bar.
.bar
Side note: the parameters for the parseJsonSOMETHING cheats have been left unnamed.
parseJsonSOMETHING
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current documentation for the JSON cheats does not explain that the
key
parameter must be provided with a leading dot:forge-std/src/Vm.sol
Lines 213 to 239 in e8a047e
I was trying to access the key by its simple name, like so:
And that didn't work until I added the leading dot, i.e.
.bar
.Side note: the parameters for the
parseJsonSOMETHING
cheats have been left unnamed.The text was updated successfully, but these errors were encountered: