File size: 561 Bytes
8e19dd8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<!DOCTYPE html>
<html>
<head>
<title>User JSON Display</title>
<script>
// Fetch the user.json file
fetch('user.json')
.then(response => response.json())
.then(data => {
// Display the JSON data
document.getElementById('user-data').textContent = JSON.stringify(data, null, 2);
})
.catch(error => {
console.error('Error:', error);
});
</script>
</head>
<body>
<pre id="user-data"></pre>
</body>
</html> |