Home
last modified time | relevance | path

Searched refs:serde_json (Results 1 – 25 of 90) sorted by relevance

1234

/external/rust/crates/rusqlite/src/types/
Dserde_json.rs3 use serde_json::Value;
11 Ok(ToSqlOutput::from(serde_json::to_string(self).unwrap())) in to_sql()
19 ValueRef::Text(s) => serde_json::from_slice(s), in column_result()
20 ValueRef::Blob(b) => serde_json::from_slice(b), in column_result()
44 let data: serde_json::Value = serde_json::from_str(json).unwrap(); in test_json_value()
51 let t: serde_json::Value = db in test_json_value()
55 let b: serde_json::Value = db in test_json_value()
/external/rust/crates/serde_json/
DREADME.md5 [Latest Version]: https://img.shields.io/crates/v/serde_json.svg
16 serde_json = "1.0"
21 - [JSON API documentation](https://docs.serde.rs/serde_json/)
65 representation. This data structure is [`serde_json::Value`][value].
78 A string of JSON data can be parsed into a `serde_json::Value` by the
79 [`serde_json::from_str`][from_str] function. There is also
89 use serde_json::{Result, Value};
103 // Parse the string of data into serde_json::Value.
104 let v: Value = serde_json::from_str(data)?;
128 [`as_str()`]: https://docs.serde.rs/serde_json/enum.Value.html#method.as_str
[all …]
DMETADATA1 name: "serde_json"
6 value: "https://crates.io/crates/serde_json"
10 value: "https://static.crates.io/crates/serde_json/serde_json-1.0.62.crate"
DCargo.toml.orig2 name = "serde_json"
8 documentation = "https://docs.serde.rs/serde_json/"
53 # Make serde_json::Map use a representation which maintains insertion order.
67 # Use an arbitrary precision number representation for serde_json::Number. This
71 # Unlike float_roundtrip, this feature makes JSON -> serde_json::Number -> JSON
DCargo.toml15 name = "serde_json"
20 documentation = "https://docs.serde.rs/serde_json/"
/external/rust/crates/uuid/benches/
Dserde_support.rs5 use serde_json;
16 serde_json::to_writer(&mut buffer as &mut [u8], &uuid).unwrap(); in bench_json_encode()
25 b.iter(|| serde_json::from_str::<Uuid>(s).unwrap()); in bench_json_decode()
/external/rust/cxx/book/src/binding/
Dslice.md96 pretty-print that JSON data into a std::string via the [serde_json] and
99 [serde_json]: https://github.com/serde-rs/json
130 fn prettify_json(input: &[u8], output: Pin<&mut CxxString>) -> serde_json::Result<()> {
132 let mut deserializer = serde_json::Deserializer::from_slice(input);
133 let mut serializer = serde_json::Serializer::pretty(writer);
153 // Prettify using serde_json and serde_transcode.
/external/rust/crates/chrono/benches/
Dserde.rs12 black_box(serde_json::to_string(&dt)).unwrap(); in bench_ser_naivedatetime_string()
24 black_box(serde_json::to_writer(s, &dt)).unwrap(); in bench_ser_naivedatetime_writer()
/external/rust/crates/tinytemplate/src/
Dlib.rs66 extern crate serde_json;
80 use serde_json::Value;
216 let value = serde_json::to_value(context)?; in render()
Dtemplate.rs7 use serde_json::Value;
385 ::serde_json::to_value(&ctx).unwrap() in context()
810 let context = ::serde_json::to_value(&context).unwrap(); in test_root_print()
828 let context = ::serde_json::to_value(&context).unwrap(); in test_root_branch()
846 let context = ::serde_json::to_value(&context).unwrap(); in test_root_iterate()
864 let context = ::serde_json::to_value(&context).unwrap(); in test_number_truthiness_zero()
882 let context = ::serde_json::to_value(&context).unwrap(); in test_number_truthiness_one()
905 let context = ::serde_json::to_value(&context).unwrap(); in test_indexed_paths()
931 let context = ::serde_json::to_value(&context).unwrap(); in test_indexed_paths_fall_back_to_string_lookup()
/external/rust/crates/idna/tests/
Dpunycode.rs11 use serde_json::map::Map;
12 use serde_json::Value;
/external/rust/crates/rusqlite/
DCargo.toml.orig85 "serde_json",
103 serde_json = { version = "1.0", optional = true }
148 …lob", "chrono", "collation", "functions", "limits", "load_extension", "serde_json", "time", "trace…
DCargo.toml28 …lob", "chrono", "collation", "functions", "limits", "load_extension", "serde_json", "time", "trace…
90 [dependencies.serde_json]
136 …heck", "functions", "hooks", "i128_blob", "limits", "load_extension", "serde_json", "series", "tra…
/external/crosvm/base/src/
Dtube.rs23 Json(serde_json::Error),
73 let msg_json = serde_json::to_vec(&msg_serialize).map_err(Error::Json)?; in send()
101 || serde_json::from_slice(&msg_json), in recv()
/external/rust/crates/url/tests/
Ddata.rs14 use serde_json::Value;
145 let bytes = serde_json::to_vec(url).unwrap(); in check_invariants()
146 let new_url: Url = serde_json::from_slice(&bytes).unwrap(); in check_invariants()
/external/crosvm/sys_util/src/
Ddescriptor_reflection.rs448 deserialize_with_descriptors(|| serde_json::from_str(json), &mut safe_descriptors) in deserialize()
468 let json = serde_json::to_string(&v_serialize).unwrap(); in raw()
486 let json = serde_json::to_string(&v_serialize).unwrap(); in file()
506 let json = serde_json::to_string(&v_serialize).unwrap(); in option()
525 let json = serde_json::to_string(&v_serialize).unwrap(); in map()
/external/rust/crates/criterion/src/
Dfs.rs24 let result: A = serde_json::from_str(string.as_str()).map_err(|inner| Error::SerdeError { in load()
65 let buf = serde_json::to_string(&data).map_err(|inner| Error::SerdeError { in save()
/external/oss-fuzz/docs/getting-started/new-project-guide/
Drust_lang.md53 …google/oss-fuzz/blob/12ef3654b3e9adfd20b5a6afdde54819ba71493d/projects/serde_json/project.yaml#L3-…
68 …google/oss-fuzz/blob/12ef3654b3e9adfd20b5a6afdde54819ba71493d/projects/serde_json/Dockerfile#L18-L…
78 …om/google/oss-fuzz/blob/12ef3654b3e9adfd20b5a6afdde54819ba71493d/projects/serde_json/build.sh#L20):
/external/rust/crates/serde_test/
DREADME.md44 serde_json = "1.0"
63 let serialized = serde_json::to_string(&point).unwrap();
69 let deserialized: Point = serde_json::from_str(&serialized).unwrap();
/external/rust/crates/serde/
DREADME.md44 serde_json = "1.0"
63 let serialized = serde_json::to_string(&point).unwrap();
69 let deserialized: Point = serde_json::from_str(&serialized).unwrap();
/external/rust/crates/serde_derive/
DREADME.md44 serde_json = "1.0"
63 let serialized = serde_json::to_string(&point).unwrap();
69 let deserialized: Point = serde_json::from_str(&serialized).unwrap();
/external/crosvm/base/
DCargo.toml15 serde_json = "*"
/external/crosvm/sys_util/
DCargo.toml13 serde_json = "1"
/external/rust/crates/tinytemplate/
DCargo.toml.orig19 serde_json = "1.0"
/external/rust/crates/idna/
DCargo.toml.orig25 serde_json = "1.0"

1234