I want to have a lowdb Json database and in it I want to be able to get all the "urls" and list only the 'slug', the 'url', and the 'stats' for each and every single one like this (with JS,HTML)-> (Below is how it should be listed {in HTML, JS})
Slug: Example
Url: https://example.com
Stats: 37
Slug: Example1234
Url: https://example.net
Stats: 15
Slug: Exampleio
Url: https://example.io
Stats: 20
And this is how the database would look:
{
"urls": [
{
"slug": "example",
"url": "https://example.com",
"token": "amazingdev1",
"stats": 37
},
{
"slug": "example1234",
"url": "https://example.net",
"token": "adsfrdmgsrf",
"stats": 15
},
{
"slug": "exampleio",
"url": "https://example.io",
"token": "07dfpwxukck57rv5",
"stats": 20
}
]
}
I am pretty new to all this stuff; how would you do it? Thanks in advance!