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…
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…
I am trying to use .NET 7 and EntityFramework with MySQL. I am using MySql.EntityFrameworkCore v7.0.0 installed via NUGET. I am able to scaffold my context and entities ("reverse engineer / db first"). Also I can successfully use the generated…
I have a ForumController where I have a function ChangeOrder with a ChangeOrderDto. Here is the code: [HttpPost("change-order")] public async Task<ActionResult> ChangeOrder([FromBody] ChangeOrderDto[] forums) { foreach (var dto in forums) { var forum = await context.Forums.FindAsync(dto.Id); if (forum is not…
I have a Asp.Net web app that used for validation, a scanner is connected to it through serial port and whenever a qr code is scanned, It gets the data and the page is refreshed and uses the new data…
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 =…
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:…
We have been using high level API's to connect to dynamo db and fetching the data. Pagination was not setup before but since we have lot of data now, we want to setup pagination. var scanConditions = new List<ScanCondition>(); scanConditions.Add(new…
I did setup of a MySQL database on AWS free instance t2 micro by following the link: https://towardsdatascience.com/running-mysql-databases-on-aws-ec2-a-tutorial-for-beginners-4301faa0c247 Now I am able to connect to database using MySql Workbench and SSH with pem file. But What should be the connection…
I am using NewtonJson for serializing object. I want to serlize a object which has two properties one is normal string and the second property is dictionary of some items. I am expecting a result something like this: "Company": {…
I installed .NET 6 on my ubuntu machine version 22.10 using the snap package manager. I'm wanting to create a web api core project using aspnetcore, but was having issues with linux asp.net core segmentation fault (core dumped) errors so…