Function write_json
Source pub fn write_json<T: Serialize>(value: &T) -> NeoResult<NeoByteString>
Expand description
Writes a value as JSON to a NeoByteString.
§Type Parameters
T - The type to serialize
§Arguments
value - The value to serialize
§Returns
Ok(NeoByteString) containing the JSON representation
Err(NeoError) if serialization fails