Skip to main content

default_json

Function default_json 

Source
pub fn default_json<T: Serialize>(value: T) -> Option<Value>
Expand description

Serialize a default value to serde_json::Value for an InputSlot::default. Returns None if the value can’t serialize.