I want to return a single json object and read the ip address
//This is the object in json file
{"ip":"http://localhost:8080"}
For example, I want
import urlAddress from './url.json';
const url = //the json value;
console.log(url);
I want to return a single json object and read the ip address
//This is the object in json file
{"ip":"http://localhost:8080"}
For example, I want
import urlAddress from './url.json';
const url = //the json value;
console.log(url);
objects.json
export default {
"ip":"127.0.0.1"
}
app.js
import objects from './objects'
console.log(objects.ip) // output: 127.0.0.1