[
{
"id": 1,
"title": "my First Item",
"body": ""
},
{
"id": 2,
"title": "my Second Item",
"body": ""
},
{
"id": 3,
"title": "my Third Item",
"body": ""
}
]
Do you think the above JSON structure is suitable for storing information about books that users have viewed? I also have other user data to track, so I'm trying to organize things better by grouping them. My main concern is how can I efficiently check if a certain object with a specific value already exists in this structure to avoid inserting duplicate data. For instance, how would I verify whether id 2 is present without having to loop through all the items?