pub fn to_value<T>(value: &T, config: &Config) -> Result<Value>Expand description
Serializes a value to a serde_json::Value with the given configuration.
ยงExample
use serde_json_ext::{to_value, Config};
let config = Config::default().set_bytes_hex().enable_hex_prefix();
let value = to_value(&vec![1u8, 2u8, 3u8], &config).unwrap();