Click here to Skip to main content
15,889,863 members
Everything / JSON

JSON

JSON

Great Reads

by Ajcek84
Open source library for music engraving in desktop, mobile and web applications
by Robert_Dyball
Add JSON Web Token Authentication (JWT) using OpenIDDict to our ASP.NET Core + Angular 2 SPA. Source includes VS2015 and VS2017 versions.
by wmjordan
This is a fork of "fastJSON" with new power to control many aspects in JSON serialization and deserialization, such as, serializing interface instances (polymorphic serialization) and private types, including or excluding members, performing data conversions, conditional serialization, etc.
by dnxit
MVC .NET Core 3.1 Dynamic Role based authorization using Authorization Handler & Custom Authorize Policy

Latest Articles

by honey the codewitch
Implementing a simple JSON parser with Visual FA
by honey the codewitch
Generate a web browsable interface to your archived TV show content
by honey the codewitch
If you're putting together templates or other messes using JSON and C# this may be the ticket for you.
by honey the codewitch
Stream JSON efficiently on little devices with minimal flash and memory usage

All Articles

Sort by Title

JSON 

31 Jul 2015 by binadi007
Hi,I'm facing a unique problem of firefox and i.ewhen I passed a function from $.AJAX with datatype as JSON then that function (provided in url with some parameter) will not executeNote :- I'm using both onclientclick event and button click event on the same buttonAnd when I'm...
30 Sep 2013 by Ronnie22
I have two filessearh_journal.phpfunction submitForm() { var form = document.myform; var dataString = $(form).serialize(); $.ajax({ type: 'POST', url: 'journal_table/get_data_journ.php', data:...
30 Sep 2013 by Kamran Ayati
perhaps you can not correctly connectand then php cant to recieve data
29 Mar 2013 by larssy1
I've started to work on a private project. However, in the first stage already faced a problem.The returned data is in XML format (not that bad, but takes alot of effort to parse to usable objects)The remote server doesn't accept any ORIGIN except for himself, so the browser throws the...
30 Mar 2013 by Sergey Alexandrovich Kryukov
The methods $.ajax, even less $.getJSON are unrelated to XML. You use Ajax to download some data, then post it as XML, as you correctly put it.Hard or not the parsing is, you have to do it; "usable objects" don't parse themselves. :-)Here is how you do it with jQuery:...
29 Mar 2013 by larssy1
This is not an actual solution for my problem given. But it is a way to bypass the origin using PHP.In my javascript, I've requested my PHP code using the following:function Communication () { this.global = new Global(); this.allowedParameters = ["Character"]; ...
18 Jul 2016 by Kornfeld Eliyahu Peter
PoC - a small trip to see how .NET Core IS multiplatform
16 Jun 2020 by Shkurko Eugene
This article looks at the only thing that is missing from Christian Horsdal's, “Microservices in .NET Core: with examples in Nancy” - a tool for automating the interaction between microservices.
20 Nov 2015 by Mohamed Amine SEBBANE
Localization of .NET assemblies in the cloud and translation
12 Oct 2023 by Graeme_Grant
.NET compliant Silent ClickOnce Update Background Worker Service for Winform, WPF & Console in C# & VB
5 Jan 2014 by Roy, Philippe
Cloud computing means opportunities as well as challenges. Here's an overview of cloud computing intersecting with the IVR world.
20 Oct 2018 by Yogi S.
This article explains how useful the jQuery Load method is for doing AJAX calls in our web projects. I will explain the 4 ways/situations where you can use this method and create astonishing great feature for the users.
5 Jul 2016 by Member 12597529
I keep getting stuck with this error on my postman api where I want to send a large string as one of the parameters to my web service when it is hosted on a local server. When I test the service on localhost it works fine. http://i.stack.imgur.com/O2Fgl.png[^]The web service is supposed to...
5 Jun 2014 by rAZHere
When passing json data from client to server using jquery , i getting 400 Bad Request . When viewed json data from firebug it show to be as below : "NetworkError: 400 Bad Request -...
5 Jun 2014 by sankarsan parida
Edit:web.config system.webServer section and set httpErrors existingResponse attribute ... ... The classic CustomErrors behaviour because I was comparing localhost with a remote serverand the first wouldn't explain how some of my other Authentication 'errors'...
18 Sep 2014 by Anele Ngqandu
HiHaving issues i cant seem to hit my controller, please helpWeb.xml below.
23 Sep 2014 by Suraj Sahoo | Coding Passion
For 500 Internal server error, you ought to debug and check for the Issue on the server side code. Please debug putting the code block in try catch and then check for exception.ThanksPlease reply after debug. :)
8 Dec 2021 by Member 15435322
I know @JsonProperty annotation can be used in the class of instance fields,which means in the view section what I want to show variable name, it is okay, but what if what annotation do we have to use to show the name of the class as I want in...
1 Nov 2021 by wifinut
I'm trying to pass a defined variable in a BASH CURL command. I can't seem to get the single quotes or double quotes correct and it results in an error: line 22: --user: command not found Hardcoding the value is no problem. What I have...
1 Nov 2021 by Richard MacCutchan
It is because of the uncontinued blank line and the single quotes around $password. The following works*: curl "https://somewebsite.com" \ --request POST \ --header "Accept:application/json" \ --header "Content-Type:application/json" \ --data...
14 Sep 2012 by cutie1
HiiIn implementing the REST service when I run the URL then I get the following error.."[Fiddler] ReadResponse() failed: The server did not return a response for this request."I want to return the response in JSON format ?However when I check for returning the response in XML format then its...
14 Sep 2012 by RaisKazi
Based on my answer to your previous question, I take you are developing WCF REST service. Have you defined properties of WebInvoke attribute as below. Change Method type to POST if you are using POST method.[WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat =...
14 Feb 2014 by Sergey Alexandrovich Kryukov
Sorry, this is not a question. And this is not the sample-finding service, sorry. Do the Web search. In case of some doubt, please ask a specific question.—SA
14 Feb 2023 by ildarin
The most succinct declarative programming language for fast coding
15 Mar 2014 by Richard MacCutchan
You have posted this question in two other forums already. Please post in one place only.
31 Jan 2021 by Steffen Ploetz
Creation of a basic icon editor with as little code as possible, that is running on ReactOS and Windows, to check out the stability of application development capabilities on ReactOS
13 May 2013 by VICK
HI Experts,I am new in field of Programming and wana learn new technologies.. Heard a lot of JSON and JQUERY.Can any body differenetiate between them??and can you provide some reading books for learning these two??I will be really thankful for this.Regards.
13 May 2013 by Mohammed Hameed
Definition as per http://www.json.org/[^] : JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd...
4 Oct 2018 by Rahul Rajat Singh
In this article we will look at how Dependency Injection works in ASP.NET Core.
17 Dec 2015 by Talking Dotnet
A closer look at various JSON files in ASP.NET 5
19 Sep 2020 by Don Kackman
An easy to use Rest client using the Dynamic Language Runtime
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
22 Oct 2022 by Kenji Elzerman
A walkthrough to create and run a minimal API with .NET 6 using C#
9 May 2020 by Dr. Song Li
Discussion about AWS CLI & SAM CLI
23 Oct 2018 by Dr. Song Li
This is a note on Docker.
25 Sep 2018 by Dr. Song Li
This is a note on Jest & React
10 Oct 2018 by Dr. Song Li
This is a library to implement Neural Networks in JavaScript.
22 Sep 2018 by Dr. Song Li
This is a note on Redux
6 Aug 2018 by prapti.n3
I am executing the following code to get data from Web API: $(window).load(function () { var jsonObject = { "CompanyID": 1, "UserName": '30', "UserPwd": '30', "UserRole": 3, "RemoteHostIP": '8.8.8.8' ...
6 Aug 2018 by Richard Deeming
Your API code is throwing an exception. When that happens, your action returns null rather than an appropriate response message. Change your catch block to return a suitable response message: catch (Exception ex) { CTException.WriteDBLog(strCodeFile, "Login_User", ex.Message,...
4 Aug 2015 by Gennady46
I have to do a project using Json server. I have never used Json server, so need some help to get directed in a right direction. here some project description: Use Visual Studio 2013. You must download and install the following libraries : “Casablanca” JSON C++ library, you must download...
14 Nov 2011 by klinkenbecker
Builds a parse tree from a file based JSON string and allows you to edit as a tree or a string
30 Mar 2012 by Afshin Mehrabani
In this article we are going to review a piece of NodeJS code and learn how to use some of its common modules. This is a simple application which keeps record of logs including errors, warnings and information.
30 May 2012 by Murray Brooks Davis
How to make a simple, end-to-end, mobile, Java enterprise application including a RESTful web service and an Android client.
7 Sep 2018 by Robert Vandenberg Huang
Experiment, run and compare different pathfinding algorithms and heuristic functions
30 Apr 2021 by Gábor Angyal
A superset of JSON with improved type inference capability
23 Aug 2019 by Leif Simon Goodwin
This article presents a highly configurable rotary dial control.
21 Dec 2022 by scastelli
Natural approach to calculate value of an expression
3 Aug 2018 by Rahul Rajat Singh
This article introduces Dapper to absolute beginners.
27 Mar 2019 by Florian Rappl, Manuel Römer
Supporting partial PUT (or PATCH) operations in ASP.NET Core with Newtonsoft.Json
12 Jan 2018 by Member 13476370
i am using frozen.h for json files .. I want to read the book array info from .json file into an array of structs ***********problem 1********** .. struct book has a nested struct date which I want to access in .json file .. but the library won't allow me .. if you know a solution to my...
12 Jan 2018 by KarstenK
you arent using the library in the correct way. Take a look at the sample code on Github to understand it. The key fuction is json_scanf which can have different parameter like a function pointer to scan subobjects. The rest is some nesting of the code to match your data structure.
4 Apr 2024 by honey the codewitch
If you're putting together templates or other messes using JSON and C# this may be the ticket for you.
6 Apr 2015 by Android on Intel
The objective of this article is to show a method for accessing a REST based database backend from an Android* app using MongoDB* and Spring IO*.
27 May 2016 by Matt Scarpino
This article explains how to read, process, and write JSON data using the JsonCpp toolset.
13 Jun 2019 by Member 13535164
This was the question i posted in stack overflow , you can see in depth the whole thing and can understand through this link. "https://stackoverflow.com/questions/56556474/accessing-retrofit-2-data-outside-on-response" Dont know if some thing i am doing wrong or correct in my approach please...
22 Apr 2012 by vaibhavtiwari260
hi friends, I have an aspx page from which i make call to a webhandler(ashx), this webhandler retrieves data in form of list.I want to bind a repeater placed on my ASPX page to this list. This list is on webhandler.Any kind of suggestion would be a great help for...
1 Jun 2016 by Member 12288686
I am trying to implement RecyclerView and CardView and I am working with json. All my code is working fine and RecyclerView adapter is also not showing any error.But in my main activity when i try to call adapter it is showing a error.I took all the reference from the refrence link given...
5 Nov 2020 by Member 14984661
How do I add new attribute (element) to JSON object using JavaScript? What I have tried: I dont know everything. please tell me please
5 Nov 2020 by F-ES Sitecore
var o = { Prop1: "Hello" }; // original JSON object o.Prop2 = "World"; // add "Prop2" to it console.log(o); // {Prop1: "Hello", Prop2: "World"}
5 Nov 2020 by Richard MacCutchan
JavaScript Tutorial[^]
28 Jun 2017 by Member 13284316
I have two json strings as shown below { "account-Ind": "A", "multipage-Ind": " ", "relat-Ch-St-Nmbr": "0000001", "relat-Claim-Nmbr": "0000000", "schg-Remit-Flag": " ", "schg-Mgcare": "000000000", "schg-Co-Pay": "000000000", "schg-Deductible": "000000000", "schg-Co-Ins":...
28 Jun 2017 by Andy Lanng
There are a few ways to achieve this. The first, is as you have done and return an array of objects. You would obviously need to know what object what what in the array. You have implicitly created an array of the two objects in your example so this is what you get. The second and third would...
28 Jun 2017 by Andy Lanng
Given that you can't deserialize into a class (for some unknown reason), try this hack: var result = json1.Insert(json1.indexOf("}"),json2)
30 Sep 2013 by Member 9155255
Hi,Here i got one requirement ie i have to create one jquery popup which contains two texbox and button....when i click that button i need to save in gridview and popup should close...Actually i searched in google.....i didn't got proper code.....Here i want in Clientside...please...
1 Oct 2013 by VishwaKL
HiI feel this link may help you Update/delete data in gridview[^]
19 Nov 2013 by ashok rathore
this is for index.cshtml page:-@using TestDemo16_nov.Models;@model List@{ ViewBag.Title = "Home Page";}@**@
5 Nov 2020 by Ev Uklad
This article describes a technique to serialize models containing dynamic types with System.Text.Json JsonSerializer, that doesn’t support $type.
10 Aug 2022 by Jason Sultana
How to add configuration to Web API and other project types
13 Aug 2019 by Benktesh Sharma
Demonstrate how to add EF support in .NET Core project
5 Jan 2015 by Velkumar Kannan
How to add image data in json.???I have converted the image data in to Base64 string and i have to add this base64 string in JSon..
6 Jan 2015 by Arjsrya
Create a class with required properties like Image Id,Image etc.Store the values in those prooperties and convert it into JSON using Newtonsoft Library.You can serialize it into json object as follows.ImageProperties image = new ImageProperties();image.ImageId=101;image.ImageData =...
12 Jun 2014 by Member 10419043
I am Trying this code..but it is not properly executing..Please Help me.. #include #include #include #include #include ...
6 Jul 2014 by BacchusBeale
Your sample function is waiting for input from the command line.But you are trying to service a web-request. This sample function will never return because no one is at command line to press Enter.
3 Apr 2014 by Appdev(Icode)
Hi I'm creating a webservice which should get data from database(sql server) and return it.Every thing working fine.But what i need is i need to display the data with the format which i need.Here is my code: public string GetEmployees() { ...
3 Apr 2014 by Appdev(Icode)
instead of return serializer.Serialize(rows); i changed it as:return "{ \"Cargo\": " + serializer.Serialize(rows) + "}";share|edit|flag
29 May 2021 by Don Fizachi
A JSON form specification
15 Nov 2016 by Don Fizachi
A JSON form specification
29 Jun 2022 by Suraj Ingle
"patients": [ { "addresses": [ { "city": "", "country": "United States of America", "county": "", "district": null, "email": [], "houseNumber": null, ...
29 Jun 2022 by Chris Copeland
First, you should consider naming your variables something easier to understand. dJson2 is not a good way to name something, especially when you add more and more of these variables. Instead, give it a meaningful name like nameComponents so you...
5 Dec 2014 by Ravindranath.net
Hello,Would you please help me with the below issue?We are returning the exception throw JSON object in the JQUERY call? Below is how we are retuning the exception in the controller.protected JsonResult ThrowJSONError(Exception e){ return Json(new { Message = e.Message },...
11 Sep 2015 by Dawood507
How to bind images from application's folder (which name come from databse) to image controls of datalist item template?I tried like below /*asp.net */
4 Apr 2012 by Pete BSC
I took over a project where I have a page that loads a large select (combo box) list of 1,430 entries and loads without issue on our main page. We are using Pretty Photo[^] as a modal display for inserting and modifying data. (I removed the pretty photo and the issue persisted...
20 Aug 2012 by Pete BSC
I finally developed a workaround for this issue. I was never able to solve the original issue.$(document).ready(function () {//only apply to controls that have LoanOnDemand=true attribute$('select[LoadOnDemand=true]').live('keydown', (function(event) { ...
15 Sep 2016 by Member 11883599
Hi all,I am planning to get Customer Id from DB by passing customer name to the controller using Ajax. And assign to CustomerId to save them in DB with another Ajax post.but it alerts error. I could not debug. please help me to solve it. //Save if valid if...
5 Sep 2016 by David_Wimbley
So a few things to do/check.Based on your comments and your code, I believe your issue as to why its not even hitting the controller is 2 things:1) you are missing the [HttpPost] verb above your controller action.[HttpPost]public JsonResult getCustomerId(string CusName) ...
15 Sep 2016 by Member 11883599
Hi All, Finally I found the issue. I just used Ajax calls in a function and called, which did not work. So I included to a drop-down list text change method and it works fine now. Here is total code.$("#Customer").change(function () { var name = $("[id*='Customer']...
21 Jul 2015 by Vivek-Marwaha2015
I have created a Cordova app in HTML5. I am trying to make an AJAX call in jQuery and calling with restAPI. It's working fine with Ripples but not working with android emulator 4.4.I am using the code below:var wcfServiceUrl =...
29 Jun 2016 by Member 10048252
I have a telerik modal popup. In the popup there is a telerik radgrid. On clicking a button the below ajax gets called and the radgrid gets filled if data is returned. function OnSeriesClick(args) { var kendoWidget = args.sender; ...
28 Sep 2015 by Mohammed_Faisal_Majeed
i am calling this method 'Get_myHours' from html page which is in the same project.its not working please help !!!function show() { $.ajax({ type: "GET", url: "http://localhost:51065/Service1.svc/Get_myHours", contentType: "application/json;...
27 Sep 2015 by Manas_Kumar
Use POST method instead of GET method because you are sending data to service. Secondly make your service running. Thirdly make sure you have one parameter loginIDtxtin Get_MyHours method. Fourthly you were sending loginIDtxtin as param meter value, it should be textbox value. See below...
7 Feb 2017 by shyam.kalaskar
I write a code for make Url in Lowercase in global.asax file. my ajax call not working.it returns me html insted of my result. can any one help me if I remove the rule from global.asax then it works.Can any one help me.Thanks in advanceWhat I have tried:This is my ajax call...
16 Feb 2017 by kkakadiya
Hello,I have implemented pagination in MVC application. when first time page loads, it works properly, when I click on paging then it makes AJAX call and bind the data in my HTML table from json response. but after AJAX call, pagination is not working and reload the page and data again and...
16 Feb 2017 by Richard Deeming
Quote:$(".pager").click(functi...