Top "Json" questions

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

Receive JSON POST with PHP

I’m trying to receive a JSON POST on a payment interface website, but I can’t decode it. When …

php json post
How to convert JSON to XML or XML to JSON?

I started to use Json.NET to convert a string in JSON format to object or viceversa. I am not …

c# json xml json.net
Http 415 Unsupported Media type error with JSON

I am calling a REST service with a JSON request and it responds with a HTTP 415 "Unsupported Media Type" error. …

java json http-status-code-415
How to create correct JSONArray in Java using JSONObject

how can I create a JSON Object like the following, in Java using JSONObject ? { "employees": [ {"firstName": "John", "lastName": "Doe"}, {"firstName": "…

java json arrays
Parsing a JSON string in Ruby

I have a string that I want to parse in Ruby: string = '{"desc":{"someKey":"someValue","anotherKey":"value"},"main_item":{"…

ruby json
Serializing a list to JSON

I have an object model that looks like this: public MyObjectInJson { public long ObjectID {get;set;} public string ObjectInJson {get;…

c# asp.net json
Create JSON object dynamically via JavaScript (Without concate strings)

I have this JSON data: { "employees": [ { "firstName": "John", "lastName": "Doe" }, { "firstName": "Anna", "lastName": "Smith" }, { "firstName": "Peter", "lastName": "Jones" } ] } Suppose I …

javascript json
POST JSON fails with 415 Unsupported media type, Spring 3 mvc

I am trying to send a POST request to a servlet. Request is sent via jQuery in this way: var …

ajax json spring post http-status-code-415
Curl GET request with json parameter

I am trying to send a "GET" request to a remote REST API from Command Prompt via cURL like this: …

json rest curl
No 'Access-Control-Allow-Origin' header is present on the requested resource error

I'm trying to fetch the feed of a news website. Thought I'd use google's feed API to convert the feedburner …

javascript jquery json ajax cors