json

What is the most straightforward GWT workaround for same origin policy restriction (trying to query google maps api)?

Hello -- I am trying to do some basic geocoding using the google maps API and a GWT dyanmic web project in Eclipse. For example, query the following URL: http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&sensor=false and get back the data for parsing. I am running into some confusi...

Lyx: Can I beautify JSON inside a document?

I was wondering if anyone knew how to beautify or format JSON inside a Latex document. I am using Lyx as a front-end for writing the latex file. Are there any addons that people use? I tried to search but am not able to get anything relevant. ...

AS3 actionscripting

Hi, I'm embedding a flash file from an external domain and there is some JSON data in the page I would like to use in the movie. Whats the best method to get these variables without passing them on as a flashvars (I don't have control of the page it's embedded in). My only idea is to enable script access to 'always' and then get the ful...

Help with WCF servcie in AJAX web applicaiton sending JSON...

I am trying to setup an ASPX page to call a WCF servcie thorugh a ScriptManager. For some reason when I call the "SpinStitch.Services.Chat.IChatter.CreateChatSession" method of the servcie I get this error "The server method 'CreateChatSession' failed.' I had a breakpoint set on the CreateChatSession method in the server, but it never g...

Object return needs to wait until JSON request is finished

I'm trying to write a somewhat generic method for retrieving data either from the browser cache if it's available, or a JSON request if it's not. Right now, all I want to do is be able to give my data.get method an id, and return the correct results. This works perfectly fine - console logs the new object being retrieved via JSON the fir...

JQuery on Google JSON fails with Error 405?

I am not able to understand, how to do fetch JSON data from Google servers, the requests fails with 405 HTTP error (Method Not Allowed). But I can download the JSON file manually or using PHP on my web server using file_get_contents API. But I want client browsers to download the JSON data directly. There are some similar questions on SO...

ASP.NET MVC Result Return Helper

I find myself needing to return various JSON results to the client from my controller actions. I have created static "helper" methods of the type ContentResult. I want to be able to reuse these helpers in multiple projects, so I've created them in their own class, and someday soon I'll move them to their own assembly. Here is my questio...

Change table based on dropdown box selection

I need to be able to have the displayed table change based on the drop down menu item selected. I have no idea what to write in javascript. The code I have so far is: JS: //change table viewed $("#view").change( function (event) { $.getJSON('view.php?view=' + $(this).val(), function (json) { }); }); HTML: <div> ...

Can't Deserialize a Nullable KeyValuePair from JSON with ASP.NET AJAX

The following class does not deserialize (but does serialize) using System.Web.Script.Serialization.JavaScriptSerializer. public class foo { public KeyValuePair<string, string>? bar {get;set;} } The attempt to deserialize results in a System.NullReferenceException when System.Web.Script.Serialization.ObjectConverter.ConvertDictionar...

JSON object in IE6 - How?

Hi Quick questions that probably a piece of cake for someone in the know to asnwer. I have a simple asp.net website that uses JSON for a bunch of stuff (and JSON.stringify) All good in firefox etc, yet, in IE6 I run into an error with JSON being undefined. Is there a way I can include a JSON implementation without breaking what I have...

Objective-C - Comparing integers not working as expected

Hi everyone. So my problem is this: I am receiving a JSON string from across the network. When decoded (using SBJSON libraries), it becomes an NSDictionary that SHOULD contain a number of some sort for the key 'userid'. I say 'should' because when I compare the value to an int, or an NSINTEGER, or NSNumber, it never evaluates correctly....

Retrieving original row data from jqGrid

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter. How do I retrieve the original content before the formatting transformations are applied? FYI I am populating the table using JSON. ...

Invalid PHP JSON encoding

I'm working on a project in PHP (5.3.1) where I need to send a JSON string to a webservice (in python), but the result I get from json_encode does not pass as a valid JSON (i'm using JSLint to check validity). I should add that the structure I'm trying to encode is fairly big (13K encoded), and consists partially of UTF8 data, and while...

ASP.Net ScriptMethod generating empty JSON

I'm using JavaScript to access a ScriptService method called GetPerson(). The problem is that it is returning a fairly empty JSON string instead of an actual object string. The same happens when I return a new DateTime object so the class is out of question I hope. This is returned: {"d":{"__type":"Person"}} this is my WebService.cs...

Drupal JSON POST from PhoneGap

I am trying to send a POST request to Drupal's Services module & JSON_Server module, however I am getting { "#error": true, "#data": "Invalid method " } Since PhoneGap runs html files from locally on the phone, should i need to worry about JSONP. The issue I have with that is that I must POST data, and JSONP only allows for GET. Any i...

Printing several binary data fields from Google DataStore?

I'm using Google App Engine and python for a web service. Some of the models (tables) I have in my web service have several binary data fields in them, and I'd like to present this data to a computer requesting it, all fields at the same time. Now, the problem is I don't know how to write it out in a way that the other computer knows whe...

How to use JSON.parse reviver parameter to parse date string

Hello all! My JSON string contains a date field that returns such a value "2009-04-04T22:55:16.0000000-04:00" I am particularly interested in parsing only the date compartment not the time. I tried using reviver function but interestingly the reviver function is never invoked! (tried on Firefox) Here is my code to accomplish that: va...

prototype js parsing multiple json objects

Hello I am a prototype newbie and am unclear on how to process multiple json objects returned. For example I would like to return a simple JSONObject map indicating the success/failure and also return a JSONArray that I can index and build an select:options from. Now each json object will be upt in the header with a different name. Ho...

check if email address really exists with a service via ajax (not regularexp) real time if it reallly exists.

I like to check the validation of an email address with ajax by onblur? (asp.net,c# and...json or anyother I don't know) I thought it could be possible with json and calling a webservice. but are there any (free)services to call? or I have to write my own? Hope you understand me what I want. Thanks ...

Extract section from json in jquery

Hi. I have a json string where some part of it needs to be extracted and sent to a service. I am wondering if it's possible to extract that specific part in jquery using expressions or any other approach? the sample json I have is {"hashcode":[], "stringMap":{":id":"50",":question":"My roof"}, ":size":"2", ":type":"java.util.HashMap"...