json

val json: Any?

Representation of a Move value in JSON, where:

  • Addresses, IDs, and UIDs are represented in canonical form, as JSON strings.

  • Bools are represented by JSON boolean literals.

  • u8, u16, and u32 are represented as JSON numbers.

  • u64, u128, and u256 are represented as JSON strings.

  • Balances, Strings, and Urls are represented as JSON strings.

  • Vectors of bytes are represented as Base64 blobs, and other vectors are represented by JSON arrays.

  • Structs are represented by JSON objects.

  • Enums are represented by JSON objects, with a field named @variant containing the variant name.

  • Empty optional values are represented by null.