Lines Matching +full:rustc +full:- +full:serialize
1 …ON   [![Build Status]][actions] [![Latest Version]][crates.io] [![Rustc Version 1.36+]][rustc]
3 [Build Status]: https://img.shields.io/github/actions/workflow/status/serde-rs/json/ci.yml?branch=m…
4 [actions]: https://github.com/serde-rs/json/actions?query=branch%3Amaster
7 [Rustc Version 1.36+]: https://img.shields.io/badge/rustc-1.36+-lightgray.svg
8 [rustc]: https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html
12 ---
21 - [JSON API documentation](https://docs.rs/serde_json)
22 - [Serde API documentation](https://docs.rs/serde)
23 - [Detailed documentation about Serde](https://serde.rs/)
24 - [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
25 - [Release notes](https://github.com/serde-rs/json/releases)
27 JSON is a ubiquitous open-standard format that uses human-readable text to
28 transmit data objects consisting of key-value pairs.
48 - **As text data.** An unprocessed string of JSON data that you receive on an
50 - **As an untyped or loosely typed representation.** Maybe you want to check
54 - **As a strongly typed Rust data structure.** When you expect all or most of
56 without JSON's loosey-goosey nature tripping you up.
84 <a href="https://play.rust-lang.org/?edition=2018&gist=d69d8e3156d4bb81c4461b60b772ab72" target="_b…
85 <img align="center" width="85" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/m…
92 fn untyped_example() -> Result<()> {
144 <a href="https://play.rust-lang.org/?edition=2018&gist=15cfab66d38ff8a15a9cf1d8d897ac68" target="_b…
145 <img align="center" width="85" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/m…
150 use serde::{Deserialize, Serialize};
153 #[derive(Serialize, Deserialize)]
160 fn typed_example() -> Result<()> {
191 way. This includes built-in Rust standard library types like `Vec<T>` and
213 <a href="https://play.rust-lang.org/?edition=2018&gist=6ccafad431d72b62e77cc34c8e879b24" target="_b…
214 <img align="center" width="85" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/m…
248 <a href="https://play.rust-lang.org/?edition=2018&gist=f9101a6e61dfc9e02c6a67f315ed24f2" target="_b…
249 <img align="center" width="85" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/m…
269 provides a better way of serializing strongly-typed data structures into JSON
281 <a href="https://play.rust-lang.org/?edition=2018&gist=3472242a08ed2ff88a944f2a2283b0ee" target="_b…
282 <img align="center" width="85" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/m…
287 use serde::{Deserialize, Serialize};
290 #[derive(Serialize, Deserialize)]
296 fn print_an_address() -> Result<()> {
303 // Serialize it to a JSON string.
313 Any type that implements Serde's `Serialize` trait can be serialized this way.
314 This includes built-in Rust standard library types like `Vec<T>` and `HashMap<K,
315 V>`, as well as any structs or enums annotated with `#[derive(Serialize)]`.
323 Benchmarks live in the [serde-rs/json-benchmark] repo.
325 [serde-rs/json-benchmark]: https://github.com/serde-rs/json-benchmark
331 the [#rust-questions] or [#rust-beginners] channels of the unofficial community
332 Discord (invite: <https://discord.gg/rust-lang-community>), the [#rust-usage] or
334 <https://discord.gg/rust-lang>), or the [#general][zulip] stream in Zulip. For
341 [#rust-questions]: https://discord.com/channels/273534239310479360/274215136414400513
342 [#rust-beginners]: https://discord.com/channels/273534239310479360/273541522815713281
343 [#rust-usage]: https://discord.com/channels/442252698964721669/443150878111694848
345 [zulip]: https://rust-lang.zulipchat.com/#narrow/stream/122651-general
348 [discourse]: https://users.rust-lang.org
350 ## No-std support
358 serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
362 [`serde-json-core`] crate.
364 [`serde-json-core`]: https://github.com/rust-embedded-community/serde-json-core
380 Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
381 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
388 for inclusion in this crate by you, as defined in the Apache-2.0 license, shall