mirror of
https://github.com/serde-rs/json.git
synced 2026-02-24 00:49:07 +00:00
Extend documentation of value::Serializer
This commit is contained in:
parent
d5b4be8509
commit
03e27f5eb7
@ -32,7 +32,12 @@ impl Serialize for Value {
|
||||
}
|
||||
}
|
||||
|
||||
/// Serializer type for `Value`.
|
||||
/// Serializer whose output is a `Value`.
|
||||
///
|
||||
/// This is the serializer that backs [`serde_json::to_value`][crate::to_value].
|
||||
/// Unlike the main serde_json serializer which goes from some serializable
|
||||
/// value of type `T` to JSON text, this one goes from `T` to
|
||||
/// `serde_json::Value`.
|
||||
pub struct Serializer;
|
||||
|
||||
impl serde::Serializer for Serializer {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user