File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -285,17 +285,18 @@ void save_player(const Player& p) {
285285```cpp
286286// Deserialization - one line!
287287Player load_player(const std::string& json_str) {
288- return simdjson::from<Player> (json_str); // That's it!
288+ return simdjson::from(json_str); // That's it!
289289}
290290```
291291
292292---
293293
294- # Benefits
294+ # Benefits of our implementation
295295
296296- ** No manual field mapping**
297297- ** No maintenance burden**
298- - ** Handles nested structures automatically**
298+ - ** Handles nested and user-defined structures and containers automatically**
299+ - ** You can still customize things if you want**
299300- ** Performance tuned by the library**
300301
301302---
@@ -351,7 +352,7 @@ let player: Player = serde_json::from_str(&json_str)?;
351352
352353``` cpp
353354std::string json_str = simdjson::to_json(player);
354- Player player = simdjson::from<Player> (json_str);
355+ Player player = simdjson::from(json_str);
355356```
356357
357358- no extra tooling required
You can’t perform that action at this time.
0 commit comments