JSON (JavaScript Object Notation) is a lightweight data exchange format inspired by JavaScript object literals. It is often used with JavaScript, Ajax, and RESTful web services but is completely language independent.

learn more… | top users | synonyms (1)

5
votes
0answers
96 views

deserialize lazylist using jackson

I have a object which uses a org.apache.commons.collections.list.LazyList for one of its fields, which is serialized ti JSON. The JSON looks like this: "myObject": ...
5
votes
0answers
1k views

RestyGWT vs RequestFactory

I'm thinking on migrating my current service layer based on GWT-RPC to something else. It is about 10 service interfaces with 5 methods each, and involving about 20 different domain entities, so you ...
4
votes
0answers
258 views

Strange issue when adding a service reference to a project that has the Json.NET library referenced

The project is your standard run-of-the-mill MVC 3 application that communicates with an in house WCF service. Our MVC application references a few external libraries, including the popular JSON.NET ...
4
votes
0answers
385 views

Android - Https connection to a .NET WCF Service gives SSLException: “No peer certificate”

[SOLVED] - See below I've been getting an exception when trying to get some JSON data from my REST enabled WCF Service, in Android 2.2 over a HTTPS connection . I then noticed something very strange ...
4
votes
0answers
583 views

Preventing hotlinking on Amazon S3 with CloudFront

I tried preventing hotlinking media files on Amazon S3 with this bucket policy. { "Version": "2008-10-17", "Id": "my-id", "Statement": [ { "Sid": "Allow get requests to specific ...
4
votes
0answers
664 views

Compatibility of the “Origin” http header for enforcing restrictions

I am building a RESTful JSON api and I am concerned about json data theft and csrf. A good solution that was created to address both of these problems is the Origin http header. However I am ...
4
votes
0answers
365 views

Ignoring null values when marshaling an object to JSON with RESTeasy and Jettison

When RESTeasy marshals a POJO into XML, it will skip null values by default: See Jaxb marshaller always writes xsi:nil (even when @XmlElement(required=false, nillable=true)). However, when marshaling ...
3
votes
0answers
28 views

Using The Google Maps Geolocation API

I am Using following code to get the lat. long. by providing MCC, MNC I am using Google Maps Geo-location API for this but I am getting same results (lat/long) for different MCC/MNC values . Even ...
3
votes
0answers
18 views

Android:Fetch json object set in User Agent object

In my application I am using google account login to get logged into the application which is authenticated by our server side code after successful login and returns a control to our website custom ...
3
votes
0answers
105 views

Emberjs with a Java REST backend

I am looking into Java (possibly Scala) for a project that will use Ember and ember-data. I know I can write a backend to format the JSON, but I was wondering if there are any Java packages for Java ...
3
votes
0answers
502 views

NSJSONSerialization serialization of a string containing forward slashes / and HTML is escaped incorrectly

I am trying to convert some simple HTML into a string value in a JSON object and I'm having trouble getting the string encoding to not escape the string in NSJSONSerialization. Example... I have a ...
3
votes
0answers
125 views

Owncloud json api

Does anyone know how to integrate with owncloud via json? I'm coming for the point that if we implement owncloud in my organization, i will like to have the ability to build features into the ios ...
3
votes
0answers
230 views

Parsing with jackson and inserting same object to sqlite using ormlite android

I am parsing json data using Jackson from api call and trying to insert the data in sqlite using ormlite. For this i am using same model class. Here is my model classes public class Site { ...
3
votes
0answers
171 views

Disable Jackson mapper for a particular annotation

With Jackson, it's easy to disable all annotations for a given ObjectMapper. Is there a way to only disable one given annotation? // disable all ObjectMapper mapper = new ObjectMapper() ...
3
votes
0answers
229 views

Nested list with JavaScriptSerializer

I'm trying to produce the following JSON structure with JavaScriptSerializer in Net 3.5: { "chart": "pie", "series": [ { "name": "Browsers", "data": [ ...
3
votes
0answers
183 views

InstanceContextMode.Single in WCF wsHttpBinding,webHttpBinding and REST

I have recently started development on a relatively simple WCF REST service which returns JSON formatted results. At first everything worked great, and the service was quickly up and running. The ...
3
votes
0answers
526 views

Tumblr Oauth returning 401 on API v2

I'm trying to set up an automatic tumblr post every time I add something new to my website. I'm using the following code: $conskey = "APIKEY"; $conssec = "APISECRET"; $tumblr_blog = ...
3
votes
0answers
399 views

Multiple parameters passed in WCF client don't work (even when WebMessageBodyStyle is Wrapped)

Hi fellow StackOverflowers, I've got a WCF service wrtten C# that i can succesfully consume from things like jquery. I want to be able to consume it by adding a web service reference in C# and ...
3
votes
0answers
368 views

Deserialization JSON to objects with interface fields using SuperObject

I'm having trouble deserializing an object containing a interface field from json using SuperObject (serialization works fine) on DXE2. Consider the following: ITest = interface(IInterface) ...
3
votes
0answers
197 views

Is it possible to use one class for both ORMLite and Jackson JSON?

I want to use ORMLite to query data from SQLite and store it in Java class, then convert this class to JSON using Jackson JSON library and send it through HTTP. I also want to do opposite - get data ...
3
votes
0answers
304 views

how to omit @XmlRootElement from JSON output with Jersey?

I'm trying to produce JSON from a list of simple objects. It works, but my output is wrapped with the classname: {"classname":[{"name":"John Doe","title":"manager"} .....]} What I would like to ...
3
votes
0answers
526 views

iOS Client: “Caching” Server-side data to persistent storage

I'm building an iOS client app to interface with an existing backend architecture. To reduce latency, API calls and payloads, it'd be nice to "cache" model data client-side for faster indexing and ...
3
votes
0answers
432 views

WCF + Jquery/json consume client security

I'm tired of WCF to say the least. I need a way to use Jquery ajax to call WCF methods in a cross domain environment, so it needs to be secure as well. very hard to find a solution that use jquery ...
3
votes
0answers
1k views

F1 Real time Data feeds

I need to write an app that gets data input from real time Foruma One racing data feed. The only feed I've come across till now is the official one so called "Live timing", the only problem is that ...
3
votes
0answers
2k views

serializing and deserializing .net 4.0 ExpandoObject

I get the error: System.InvalidCastException : Unable to cast object of type 'System.Dynamic.ExpandoObject' to type 'System.Collections.IDictionary'. Normally, I'd derive ExpandoObject and then ...
2
votes
0answers
10 views

hourly_forecast from Wunderground API

I'm trying to get the hourly forecast temperature for a specific hour of the day from the Wunderground API for a research project: This is an example of the JSON: ...
2
votes
0answers
25 views

Parse local REST API with javascript the fastest way possible

I have made an api on my web server which parses data from my database on the url www.example.com/api. This process takes roughly 550ms if I access the api directly. Now when I try to parse the ...
2
votes
0answers
27 views

Jackson: deserializing recursive object

I'm trying to parse the filter parameters sent by a KendoUI grid to my web service and am having some issues convincing Jackson to parse this JSON. As far as I know, I can control the format of the ...
2
votes
0answers
18 views

How to update Newly created or dragged event in Jquery weekcalendar plugin

I am using Jquery weekcalendar plugin . When new event created , i store it in my database using ajax call .SO obviously it seen on UI But problem arise when we render calendar to next or previous ...
2
votes
0answers
35 views

How do I parse a JSON to JTree and vice versa

I'm a bit new to JSON, swing and stack overflow altogether. I'm using Java and I want to parse a complex JSON String (one that contains objects, arrays with values and arrays of objects to a JTree) ...
2
votes
0answers
42 views

Entity Framework for querying JSON strings in SQL Server

I'm looking for anyone who's done anything along the lines of querying JSON strings with the Entity Framework. I should give a little background about what I'm trying to do here. The database I'm ...
2
votes
0answers
50 views

Unrecognized escape sequence error in deserializing JSON

I am fetching location data from foursquare api and then passing this data to webservice to insert in the database. Now e.g. when i get location data for Mexico city then there are some special ...
2
votes
0answers
53 views

VBScript Object Compose

So i'm using a vbscript code through my Com Objects in order to decode a json file at first my VBs code was: Function filejson(json) On Error Resume Next Dim objStream, strData Set objStream ...
2
votes
0answers
44 views

Not Acceptable: Node type is required Android/Json/Drupal

My application registration form intent to send data to drupal via httppost. When i send the coordinates using jsonparser i get the following error. org.apache.http.client.HttpResponseException: Not ...
2
votes
0answers
48 views

how to fix android emulator freezes when saving file

I am using JSON format to save some data in a file. When i add one or 2 records, evrything is fine. I can easly check that they are correct or process them on my whish. However, when i adding 3rd ...
2
votes
0answers
48 views

Size of storing JSON response in Javascript

I'm working on a PhoneGap app and find it most efficient to cache as much user data as possible on the device when the user logs in. (Profile information, etc.) Due to project constraints, I can't ...
2
votes
0answers
1k views

org.apache.http.conn.HttpHostConnectException:Connection to http://172.20.38.143 refused

I have developed client server Application .I am accessing mysql with php running on my machine and client running on my cell which is connected to machine.WI-FI is also switched ON. Internet ...
2
votes
0answers
108 views

Jersey JSON marshalling of nested generic produces null

Having an issue trying to marshall into JSON a HashMap nested in a List using Jersey 1.11. Here's a snippet of a Jersey endpoint which produces MediaType.APPLICATION_JSON via the returned Response ...
2
votes
0answers
131 views

Encode audio from getUserMedia() to a .OGG in JavaScript

So I have this HTML5 project I'm working on, where I'm converting an iOS app to a web-based one. Accompanying part of the content creation of the app is an audio recording, which I'm trying to ...
2
votes
0answers
167 views

Can't get JSON array from URL

I'm working with Resteasy and I have launched a resource in the URL: 'localhost:8080/ressources/agences' When I test in the browser I get: [{"agence":"Agence ...
2
votes
0answers
18 views

Shell Variable in config json

Is there anyway to parse shell variable(or any other variable in json file. suppose, my home directory is $HOME=/Users/ajay, I would like to do something like { "var1" : "value1", ...
2
votes
0answers
56 views

JSON response from WCF escapes name values

I am trying to return a dictionary from a WCF REST service as a JSON object. I want the format to be {"key": "value"} so I have created my own class as described here and here. The service method ...
2
votes
0answers
135 views

JsonReader Exception in Android while parsing large josn data

I am getting an exception when using the JsonReader class in android while parsing a large json data. Exception: java.lang.IllegalStateException: Expected a name but was STRING The json data is ...
2
votes
0answers
47 views

Is it possible to make this search function remove the answers when a new search is submitted?

Is it possible to make this search function remove the previous answers every time a new search is submitted? http://www.urlgone.com/acfdd9/ (Preview does not seem to work, try running the files ...
2
votes
0answers
319 views

Unable to parse JSON string error in my Phonegap project

I'm having problems while getting JSON from PHP. The code in below is works: [{ "vehicleId": "1", "status": "Running", "position": "x", "battery": "25", ...
2
votes
0answers
216 views

jstree json_data AJAX loading does not expand tree on single click

I am using "json_data" plugin with ajax loading. My current problem is that when i single click to "+" sign, it makes ajax request and load sub-tree but does not display it. I have to click it one ...
2
votes
0answers
81 views

json not responding from the model the way I'd like to think - autocomplete select2 with rails

So, I just discovered select2. Awesome. Now I'm trying to figure out how to use it, server side with ajax / json. I'll get right to the nitty gritty. json returns a value, but the searchbox ...
2
votes
0answers
367 views

Sharepoint 2013 workflow - HttpSend action is unable to deserialize JSON data

Basically what I'm trying to do is to create workflow (sharepoint 2013 for o365) which will send an email to document uploader manager. For that I've created custom activity in VS 2012 which should ...
2
votes
0answers
149 views

AJAX and CSRF in Spring

I'm sending a CSRF token in an HTTP request header and in a POST hidden field to guard against CSRF attacks something like the following. var request; var timeout; function insert(callback) { ...
2
votes
0answers
43 views

Why “<” character got replaced with unicode character in JSON response

What is the reason behind replacement of "<" character with unicode character in FaceBook's Json API response? security?? What kinda attack is possible, If the "<" character presents in the ...

1 2 3 4 5 227