Exchange data with JSON confidently. Learn schemas, validation, parsing, streaming, patching, JSON Lines, JWT basics, and security pitfalls. Use patterns for APIs, configs, logging, and analytics that keep payloads stable and efficient.
59 posts52 contributors
Hello Team,ly Please I keep getting this generic error, Object reference not set to an instance of an object, frequently in my code, and also the profit and tax is not calculating it value,kindly assist. public ActionResult SaveSales(SalesModel ObjSalesModel) { if (ObjSalesModel == null || ObjSalesModel.tblSales == null) { return Json(new { result = false, message = "Invalid data received." }, JsonRequestBehavior.AllowGet); } try { decimal Tax = 0; decimal CostPrice = 0; decimal SellingPrice = 0; decimal vat = Tax; decimal costPrice = CostPrice; decimal sellingPrice = SellingPrice; decimal Profit = sellingPrice - costPrice; decimal Vatpercent = (vat / 100) * sellingPrice; tblSale ObjSales = new tblSale(); ObjSales.OrderDate = DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"); &nbs
I want to display the users name on a sharepoint list when a new record is recorded. I do not want to use power apps for this assignment, so I assume JSON is my only choice but I do not know how to write the code for dispalying user name in JSON. Any help is much appreciated!
Hi I have the following sample JSON where i want to split it and copy to 2 different datatables like ID,Name & Description to one table and Distributors data to another table Kindly help me with this [ { "Id":"123", "Name":"abc", "Description":"abc company", "Distributors":[ { "DName":"joe", "LastName":"BIDEN", "Email":"[email protected]" }, { "DName":"Donald", "LastName":"TRUMP", "Email":"[email protected]" } ] } ]
Use given json data Create a MongoDB database from the Json data given.
Hi, I need to deserialize the blow json data to class list in c#. [ { "M1": [ { "Machine Data": { "Date": "20-02-2023", "Time": "09:16:41", "IP Number": "-", "Machine Number": "M1", "Machine Name": "M1", "Machine Status": "0", "Program Name": "-", "Part Count": "1", "Power on Time": "1", "Running Time": "1", "Breakdown Time": "1", "Idle Time": "1" }, "SP Data": [ { "Orders": { "Client ID": "1", "Order Number": "123", "Order Quantity": "3", "Material Code": "123", "Produced Quantity": "1" } }, { "Orders": { "Client ID": "2", "Order Number": "1234", "Order Quantity": "4", "Material Code": "123", "Produced Quantity": "2" } }, { "Orders": { "Client ID": "2", "Order Number": "1234", "Order Quantity": "4", "Material Code": "123", "Produced Quantity": "2" } } ] } ] } ]
I am building cross paltfom xamrin forms app which scanning barcodes using ZXing.Net.Mobile.Forms. Now, I need to store scanning data in Json file if there is no wi-fi or Internet on devices. for this How do i create RESTful web services to detect, read, and generate 1D and 2D barcode in images by using JSON interface for Xamarin app
Hi i get response like this formate "{\r\n \"SubSurveyNumber\": [\r\n {\r\n \"DistrictLG_Code\": \"Token is Expired!\",\r\n \"SubDistrict\": \"Get New Token.\",\r\n \"VillageCode\": \"\",\r\n \"SurveyNumber\": \"\",\r\n \"SubSurveyNumber\": \"\"\r\n }\r\n ]\r\n}" GetSubsurveyno customersList1 = JsonConvert.DeserializeObject<GetSubsurveyno>(result); //string subsurvey = customersList1.SubSurveyNumber; int this i got convertion i wnat to deserilize this data and get mulptple data no only
I have a method when I debug it it return 300000 rows fine but after getting data in list i am return json object and when I am testing it on post man I am getting this error "error during serialization or deserialization using the json javascriptserializer,the length of the string exceeds the value set on the maxjsonlength property, I have done the web .config changes as well n <system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLenght="5000000"/> but still i am getting same error either it is mapping issue or length issue how to find
What is the difference between PUT and POST method in API ?
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegister