1fetch('https://jsonplaceholder.typicode.com/todos')
2 .then(response => response.json())
3 .then(json => console.log(json))
1For API Part: I use "https://www.mockaroo.com/" ==>
2generates multiple format (CSV, JSON, XML, etc)
1"_id": {
2 "$oid": "610b1d9bd6f59419f4a4197a"
3 },
4 "local": {
5 "ban_pass": 0,
6 "ban_login": false,
7 "username": "nguyencoi98",
8 "password": "$2b$12$LdXaj4Ont8tvM9Fucxl/tuFpdTfmIrbJeyZ4Xw0qzn.k8le8SrVK.",
9 "regDate": {
10 "$date": "2021-08-04T23:07:07.721Z"
11 }