macro_rules! loro_value {
($($json:tt)+) => { ... };
}
Expand description
A macro for creating LoroValue
. It works just like the json!
macro in
serde_json
.
ยงExample
use loro_common::loro_value;
loro_value!({
"name": "John",
"age": 12,
"collections": [
{
"binary-data": b"1,2,3"
}
],
"float": 1.2,
"null": null,
"bool": true,
});