Closed DevJSter closed 4 weeks ago
This solves https://github.com/foundry-rs/foundry/issues/8672
string memory json = '{"root_key": [{"a": 1, "b": 2}]}'; string[] memory keys = vm.parseJsonKeys(json, ".root_key.0"); // ["a", "b"]
string memory json = '{"root_key": [{"a": 1, "b": 2}]}'; string[] memory keys = vm.parseJsonKeys(json, ".root_key[0]"); // ["a", "b"]
This solves https://github.com/foundry-rs/foundry/issues/8672
Previous behaviour
Updated/required bheaviour