Skip to content

Commit 22085ed

Browse files
committed
Merge branch 'main' of github.com:simdjson/simdjson_talks
2 parents c9c5ac4 + 49189e1 commit 22085ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,12 @@ Runnable example at https://godbolt.org/z/Efr7bK9jn
293293

294294
---
295295

296-
# Benefits
296+
# Benefits of our implementation
297297

298298
- **No manual field mapping**
299299
- **No maintenance burden**
300-
- **Handles nested structures automatically**
300+
- **Handles nested and user-defined structures and containers automatically**
301+
- **You can still customize things if you want**
301302
- **Performance tuned by the library**
302303

303304
---
@@ -353,7 +354,7 @@ let player: Player = serde_json::from_str(&json_str)?;
353354

354355
```cpp
355356
std::string json_str = simdjson::to_json(player);
356-
Player player = simdjson::from<Player>(json_str);
357+
Player player = simdjson::from(json_str);
357358
```
358359

359360
- no extra tooling required
@@ -472,7 +473,7 @@ Just two functions. Infinite possibilities.
472473

473474
```cpp
474475
simdjson::to_json(object) // → JSON string
475-
simdjson::from<T>(json) // → T object
476+
simdjson::from(json) // → T object
476477
```
477478
478479
That's it.

0 commit comments

Comments
 (0)