Exercise JSON Data

There are two todo list in the json files : todo-1.json and todo-2.json

[
  {
    "title":"Read chapter 1 ",
    "category":"Studying",
    "tag":"Parser, Data, CS101, CS",
    "completed":"true"
  },
  {
    "title":"Chapter 1 homework",
    "category":"Homework",
    "tag":"Data, Array, CS101, CS",
    "completed":"true"  
  },
  {
    "title":"Lab 101",
    "category":"Lab",
    "tag":"Array, Sorting, Parser, CS101, CS",
    "completed":"false"
  },
  {
    "title":"Breaststroke paractice",
    "category":"Swimming",
    "tag":"Swimming, Breaststroke, Sports",
    "completed":"true"
  },
  {
    "title":"Shop tennis racket",
    "category":"Tennis",
    "tag":"Tennis, Sports",
    "completed":"false"
  }
]

And, with the following category in tree structure :

  1. List all todos (in both json files) in title order.

  2. List all todos under category structure.

    Also, in the each node, all children list in title order.

  3. Search a particular tag and list all todo in the title order.

Last updated

Was this helpful?