Skip to main content

stdJson

Git Source

State Variables

vm

VmSafe private constant vm = VmSafe(address(uint160(uint256(keccak256("hevm cheat code")))));

Functions

keyExists

function keyExists(string memory json, string memory key) internal view returns (bool);

parseRaw

function parseRaw(string memory json, string memory key) internal pure returns (bytes memory);

readUint

function readUint(string memory json, string memory key) internal pure returns (uint256);

readUintArray

function readUintArray(string memory json, string memory key) internal pure returns (uint256[] memory);

readInt

function readInt(string memory json, string memory key) internal pure returns (int256);

readIntArray

function readIntArray(string memory json, string memory key) internal pure returns (int256[] memory);

readBytes32

function readBytes32(string memory json, string memory key) internal pure returns (bytes32);

readBytes32Array

function readBytes32Array(string memory json, string memory key) internal pure returns (bytes32[] memory);

readString

function readString(string memory json, string memory key) internal pure returns (string memory);

readStringArray

function readStringArray(string memory json, string memory key) internal pure returns (string[] memory);

readAddress

function readAddress(string memory json, string memory key) internal pure returns (address);

readAddressArray

function readAddressArray(string memory json, string memory key) internal pure returns (address[] memory);

readBool

function readBool(string memory json, string memory key) internal pure returns (bool);

readBoolArray

function readBoolArray(string memory json, string memory key) internal pure returns (bool[] memory);

readBytes

function readBytes(string memory json, string memory key) internal pure returns (bytes memory);

readBytesArray

function readBytesArray(string memory json, string memory key) internal pure returns (bytes[] memory);

readUintOr

function readUintOr(string memory json, string memory key, uint256 defaultValue) internal view returns (uint256);

readUintArrayOr

function readUintArrayOr(string memory json, string memory key, uint256[] memory defaultValue)
internal
view
returns (uint256[] memory);

readIntOr

function readIntOr(string memory json, string memory key, int256 defaultValue) internal view returns (int256);

readIntArrayOr

function readIntArrayOr(string memory json, string memory key, int256[] memory defaultValue)
internal
view
returns (int256[] memory);

readBytes32Or

function readBytes32Or(string memory json, string memory key, bytes32 defaultValue) internal view returns (bytes32);

readBytes32ArrayOr

function readBytes32ArrayOr(string memory json, string memory key, bytes32[] memory defaultValue)
internal
view
returns (bytes32[] memory);

readStringOr

function readStringOr(string memory json, string memory key, string memory defaultValue)
internal
view
returns (string memory);

readStringArrayOr

function readStringArrayOr(string memory json, string memory key, string[] memory defaultValue)
internal
view
returns (string[] memory);

readAddressOr

function readAddressOr(string memory json, string memory key, address defaultValue) internal view returns (address);

readAddressArrayOr

function readAddressArrayOr(string memory json, string memory key, address[] memory defaultValue)
internal
view
returns (address[] memory);

readBoolOr

function readBoolOr(string memory json, string memory key, bool defaultValue) internal view returns (bool);

readBoolArrayOr

function readBoolArrayOr(string memory json, string memory key, bool[] memory defaultValue)
internal
view
returns (bool[] memory);

readBytesOr

function readBytesOr(string memory json, string memory key, bytes memory defaultValue)
internal
view
returns (bytes memory);

readBytesArrayOr

function readBytesArrayOr(string memory json, string memory key, bytes[] memory defaultValue)
internal
view
returns (bytes[] memory);

serialize

function serialize(string memory jsonKey, string memory rootObject) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bool value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bool[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, uint256 value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, uint256[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, int256 value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, int256[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, address value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, address[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bytes32 value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bytes32[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bytes memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, bytes[] memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, string memory value) internal returns (string memory);

serialize

function serialize(string memory jsonKey, string memory key, string[] memory value) internal returns (string memory);

write

function write(string memory jsonKey, string memory path) internal;

write

function write(string memory jsonKey, string memory path, string memory valueKey) internal;