I wanted to fetch a key from appsettings.json file to javascript code in .net 8 MVC project.
i have added the key in appsetting.json in the below manner.
appsettings.json
<code>{
"RequestCountlimit": "10"
}
</code>
<code>{
"RequestCountlimit": "10"
}
</code>
{
"RequestCountlimit": "10"
}
Please let me know how to fetch the values from appsettings.json
New contributor
Madhu Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.