console.log object to json
console.log(JSON. stringify(obj)) //Read Object
console.log object to json
console.log(JSON. stringify(obj)) //Read Object
json data doesn show on console
// if your json data doesn't show then just replace this code.
handleGetJson = () =>{
fetch(`./data.json`, {
headers : {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
})
.then(res=> res.json())
.then(data=> console.log(data))
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us