add: json encoding/decoding quiz and exercises

This commit is contained in:
Inanc Gumus
2019-05-09 14:10:09 +03:00
parent f8e5056e7a
commit 80cf86da6d
6 changed files with 466 additions and 1 deletions

View File

@ -12,4 +12,12 @@ You'll build a queryable command-line game store.
3. **[Query By Id](https://github.com/inancgumus/learngo/tree/master/24-structs/exercises/03-query-by-id)**
Add a new command: "id". So the users can query the games by id.
Add a new command: "id". So the users can query the games by id.
4. **[Encode](https://github.com/inancgumus/learngo/tree/master/24-structs/exercises/04-encode)**
Add a new command: "save". Encode the games to json, and print it, then terminate the loop.
5. **[Decode](https://github.com/inancgumus/learngo/tree/master/24-structs/exercises/05-decode)**
Load the initial data to the game store from json.