Top "Json" questions

JSON (JavaScript Object Notation) is a serializable data interchange format intended to be machine and human readable.

Proper way to return JSON using node or Express

So, one can attempt to fetch the following JSON object: $ curl -i -X GET http://echo.jsontest.com/key/value/…

json node.js express httpresponse
jQuery AJAX cross domain

Here are two pages, test.php and testserver.php. test.php <script src="scripts/jq.js" type="text/javascript"&…

javascript jquery ajax json cross-domain
Are multi-line strings allowed in JSON?

Is it possible to have multi-line strings in JSON? It's mostly for visual comfort so I suppose I can just …

json string syntax multiline
How to convert hashmap to JSON object in Java

How to convert or cast hashmap to JSON object in Java, and again convert JSON object to JSON string?

java json
HTTP POST using JSON in Java

I would like to make a simple HTTP POST using JSON in Java. Let's say the URL is www.site.…

java json http post
How to pass json POST data to Web API method as an object?

ASP.NET MVC4 Web API application defines post method to save customer. Customer is passed in json format in POST …

javascript asp.net-mvc json asp.net-mvc-4 asp.net-web-api
json_decode to array

I am trying to decode a JSON string into an array but i get the following error. Fatal error: Cannot …

php arrays json
Parsing JSON giving "unexpected token o" error

I am having a problem parsing simple JSON strings. I have checked them on JSONLint and it shows that they …

javascript json
Cannot use object of type stdClass as array?

I get a strange error using json_decode(). It decode correctly the data (I saw it using print_r), but …

php json
Convert JSON String To C# Object

Trying to convert a JSON string into an object in C#. Using a really simple test case: JavaScriptSerializer json_serializer = …

c# json