serde-value-utils
Bundle of tools to use with serde_value.
Quickstart
You can start using it by first adding it to your Cargo.toml
:
[]
= "1.0"
= "1.0"
= "0.1"
Then, create a structure which implement the serde::Serialize
trait and use it with any
serde lib.
Example: to_flatten_maptree
extern crate serde_derive;
extern crate serde_json;
extern crate serde_value_utils;
Output:
Feature with-schema
The feature with-schema
allow to suffix fields names to suits to the
LDP naming conventions.
In your Cargo.toml
, set:
[]
= { = "0.1", = ["with-schema"] }
Re-run the previous example, and now the output will be :
Example: try_detect_type
extern crate serde_value_utils;
use try_detect_type;
Output:
F64
License: BSD-3-Clause