Serialize JSON to JSON Array (Nested JSON) for POST Request C#

This is what I’m trying to achieve. I’m trying to serialize my model into a JSON for post request to insert records { "Data": [ { "employee_num": "7812345", "code": "333", "startdate": "2020-10-03" }, { "employee_num": "2345789", "code": "444", "startdate": "2020-10-03" } ] } I’m stuck with this { "employee_num": "7812345", "code": "333", "startdate": "2020-10-03" }, … Read more

How to send two arrays simultaneously to view using JSON asp.net MVC

I have to create a dynamic chart in my view based off a value a user would enter into an input contained in a beginform in my view, however it has to be done asynchronously thus why I am using Ajax and Json, I send the user input to the controller fine and then using that input my code creates two Arrays one string array that would be used as my labels for my chart and the other an int array that is used as the data values for the chart.

How to Deserialize this JSON file

I am facing this problem to convert this JSON File. Anybody please tell me how to deserialize this JSON file. https://fasp-ee999.firebaseio.com/Students.json?auth=yB71DWGpZeBBQjvtEvc4yeROXO8zp717W180rlzw Above is my json file Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as … Read more