Skip to main content

value_to_json

Function value_to_json 

Source
pub fn value_to_json(value: &NeoValue) -> Option<Value>
Expand description

Converts a NeoValue containing a ByteString to a JSON value.

§Arguments

  • value - The NeoValue to convert

§Returns

  • Some(JsonValue) if the value is a valid ByteString containing JSON
  • None otherwise