I have a C# project in visual studio and I am using JSON.net, I have a JSON file with 5 objects in it. I want that when I click a button, specific data like "name" and "description" from the 5 objects appear in a textbox.
I don't know what methods to use so I can access the JSON file and grab the data in it.
I read online that JSON is just a way to format data and that if I am doing to do something like a query I should use a database.
This is the JSON file:
{
"Fighter Features":{
"Fighting Style (Archery)":{
"name":"Fighting Style (Archery)",
"Description:":"You gain +2 bonus to attack rolls you make with ranged weapons."
},
"Second Wind":{
"name":"Second Wind",
"Description:":"Vou have a limited well of stamina that you can draw on to protect Yourself from harm. On your turn, you can use a bonus action to regain hit points equal to ld10 + your fighter leveI."
},
"Fighthing Style (Defense)":{
"name":"Fighting Style (Defense)",
"Description:":"While you are wearing armor you gain a +1 bonus to AC."
}
}
}