how to add an in a json file by using vue js code example
Example 1: vuejs read json file
<template>
<div id="app">
<ul>
<li v-for="user in users" :key="user.id">
{{user.name}}
</li>
</ul>
</div>
</template>
<script>
import usersData from "./users.json";
export default {
data() {
return {
users: usersData,
};
},
};
</script>
Example 2: how to give value from json file in vuejs
how to give value from json file in vuejs