Function json_to_bytes
Source pub fn json_to_bytes<T: Serialize>(value: &T) -> NeoByteString
Expand description
Serializes a value to JSON and returns it as a NeoByteString.
§Type Parameters
T - The type to serialize
§Returns
A NeoByteString containing the JSON, or an empty byte string on error.