I have the following data:
"books": [
{
"id": 1,
"title": "Book title",
"genre": "Novel"
},
{
"id": 2,
"title": "Book title two",
"genre": "Novel"
},
{
"id": 3,
"title": "Book title three",
"genre": "Horror"
}
]
How can I get the title for a single book using a url parameter. i.e /?bookID=1
And is there a smart way to get a list of matches of genre, /?genre=Novel This should list all objects where genre=Novel.