skip to Main Content

How to parse a big JSON

I'm trying to parse a big JSON and I only need few things from it. I've been trying to beautify it but I'm having trouble also because it seems that's not completely correct. This is the website and I've tried…

VIEW QUESTION

Can someone help me use this Json file in c#?

I have been trying to display contents of a json file in a textbox for the past 6 hours and got nowhere. here's the c# code private thruster Getthruster() { string text = File.ReadAllText(@"./thrusters.json"); List<thruster> test = JsonConvert.DeserializeObject<List<thruster>>(text); textBox1.Text =…

VIEW QUESTION

Can't using ajax call api in dotnet core 3.1? – Jquery

my class api: [Route("Api")] [ApiController] public class ApiUsersController : ControllerBase { [HttpPost] [Route("Users/demo")] public ActionResult demo([FromBody]model data) { return "OK"; } } my script jquery: var model = {key: "123"} $.ajax({ type: 'POST', url: 'Api/Users/demo', data: JSON.stringify(model), dataType: 'json', contentType:…

VIEW QUESTION
Back To Top
Search