Skip to content

Commit 9e45712

Browse files
committed
Merge pull request 778 from jayeshmann/patch-1
2 parents 8604ef9 + 9cbdfc8 commit 9e45712

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ A string of JSON data can be parsed into a `serde_json::Value` by the
8181
[`from_reader`][from_reader] for parsing from any `io::Read` like a File or
8282
a TCP stream.
8383

84+
<div align="right">
8485
<a href="https://play.rust-lang.org/?edition=2018&gist=d69d8e3156d4bb81c4461b60b772ab72" target="_blank">
85-
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
86+
<img width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
8687
</a>
88+
</div>
8789

8890
```rust
8991
use serde_json::{Result, Value};
@@ -139,9 +141,11 @@ in one of the dozens of places it is used in your code.
139141
Serde provides a powerful way of mapping JSON data into Rust data structures
140142
largely automatically.
141143

144+
<div align="right">
142145
<a href="https://play.rust-lang.org/?edition=2018&gist=15cfab66d38ff8a15a9cf1d8d897ac68" target="_blank">
143-
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
146+
<img width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
144147
</a>
148+
</div>
145149

146150
```rust
147151
use serde::{Deserialize, Serialize};
@@ -206,9 +210,11 @@ derive]* page of the Serde site.
206210
Serde JSON provides a [`json!` macro][macro] to build `serde_json::Value`
207211
objects with very natural JSON syntax.
208212

213+
<div align="right">
209214
<a href="https://play.rust-lang.org/?edition=2018&gist=6ccafad431d72b62e77cc34c8e879b24" target="_blank">
210-
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
215+
<img width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
211216
</a>
217+
</div>
212218

213219
```rust
214220
use serde_json::json;
@@ -239,9 +245,11 @@ be interpolated directly into the JSON value as you are building it. Serde
239245
will check at compile time that the value you are interpolating is able to
240246
be represented as JSON.
241247

248+
<div align="right">
242249
<a href="https://play.rust-lang.org/?edition=2018&gist=f9101a6e61dfc9e02c6a67f315ed24f2" target="_blank">
243-
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
250+
<img width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
244251
</a>
252+
</div>
245253

246254
```rust
247255
let full_name = "John Doe";
@@ -270,9 +278,11 @@ A data structure can be converted to a JSON string by
270278
[`serde_json::to_writer`][to_writer] which serializes to any `io::Write`
271279
such as a File or a TCP stream.
272280

281+
<div align="right">
273282
<a href="https://play.rust-lang.org/?edition=2018&gist=3472242a08ed2ff88a944f2a2283b0ee" target="_blank">
274-
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
283+
<img width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">
275284
</a>
285+
</div>
276286

277287
```rust
278288
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)