File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -459,32 +459,6 @@ Meeting m = simdjson::from<Meeting>(json);
459459
460460---
461461
462- # Round-Trip Any Data Structure
463-
464- ``` cpp
465- struct TodoItem {
466- std::string task;
467- bool completed;
468- std::optional< std::string > due_date;
469- };
470-
471- struct TodoList {
472- std::string owner;
473- std::vector<TodoItem > items;
474- std::map<std::string, int> tags; // tag -> count
475- };
476-
477- // Serialize complex nested structures
478- TodoList my_todos = { /* ... * / };
479- std::string json = simdjson::to_json(my_todos);
480-
481- // Deserialize back - perfect round-trip
482- TodoList restored = simdjson::from<TodoList >(json);
483- assert(my_todos == restored); // Works if you define operator==
484- ```
485-
486- ---
487-
488462# The Entire API Surface
489463
490464Just two functions. Infinite possibilities.
@@ -496,8 +470,7 @@ simdjson::from<T>(json) // → T object
496470
497471That's it.
498472
499- No macros. No code generation. No external tools.
500-
473+ No macros. No class/struct instrusion. No external tools.
501474Just simdjson leveraging C++26 reflection.
502475
503476---
You can’t perform that action at this time.
0 commit comments