json

Has anyone had experience using the Objective-C bindings for YAJL?

http://github.com/gabriel/yajl-objc I've already tried SBJSON, and while it works, I'm looking into alternative options to improve on parsing speed and memory consumption. Usage of this library doesn't seem to be as straightforward as SBJSON though, and I'm not sure how to begin using yajl. Something like this: NSArray *parsed = [dat...

Cant get Jquery ui autocomplete widget to work

Im trying to develop my first ASP.NET MVC web app and have run into a problem with the jquery ui autocomplete widget. At the moment I have a form with a number of text boxs which would lend themselves well to an autocomplete ability. The code for my "Make"(Car make) text box is show below: jquery: $(function() { $("#Make").autoc...

HttpUrlConnection Post causes the browser to download the response JSON in Java Proxy

Hi all I'm making call to Alfresco Webscripts which return JSON. I do this using GET requests which all work perfectly. If I do a file POST however, the Alfresco server receives the file correctly and sends back a JSON response, but this time the response causes the browser to prompt for a download instead of the letting Javascript proc...

javascript - multiple dependent/cascading/chained select boxes on same form

I'm populating select box options via jquery and json but I'm not sure how to address multiple instances of the same chained select boxes within my form. Because the select boxes are only rendered when needed some records will have ten sets of chained select boxes and others will only need one. How does one generate unique selects to s...

Passing an array of object in json format from view to controller

public Class Object1 { int property1 string property2 datatime property3 } // post method public virtual void ControllerAction1(Object1[] listOfObjects){ } I am tryign to pass an array of type object1 to the controller method. The client side sends the array in json format. But parameter listOfObjects is null. ...

Does WCF Data Services return invalid JSON?

I'm upgrading an application that was using jQuery 1.3.2 to consume a WCF Data Service (a.k.a. ADO.NET Data Services, a.k.a. Astoria) to use the latest version of jQuery (1.4.2). My application is now failing, with JSON parsing errors, because jQuery 1.4 now uses stricter JSON parsing. I've run the JSON returned by my data service throu...

Random JSON object generator

Hi, I need a tool which generates random JSON objects. I want to use this tool to do testing on my HTTP POST requests and use the random JSON object in it. Any suggestions? ...

How can you pass JSON Object of option parameters to open a new window?

the window.open() object has some funky parameter list... is there a way to do something like window.open({options..}); Thoughts? ...

JSON to set options in C# application

Hi I need to set/unset configure options for an in-house C# software through its GUI. Can I use JSON? Thanks ...

Returning JSON object from an ASP.NET page

Hi, In my particular situation, I have couple of solutions to my problem. I want to find out which one is more feasible. In this case, I can also achieve my goal by returning a JSON object from my server side code, however, I do not know how it is done and what is the best way of doing it. First off, I don't need a full aspx page as I...

DataGrid in Dojo , with json data from a servlet.

Hello , i am using JSON for first time... and want to fill my datagrid with my JSON data, this is my JSON data, { "head": { "vars": [ "s" , "fname" , "lname" ] } , "results": { "bindings": [ { "s": { "type": "uri" , "value": "http://tn.gov.in/Person/41" } , "fname": { "type": "literal" , "value": "Gay...

JSONP request using jquery $.getJSON not working on well formed JSON.

I'm not sure is it possible now from the url I am trying. Please see this url: http://www.heiaheia.com/voimakaksikko/stats.json It always serves the same padding function "voimakaksikkoStats". It is well formed JSON, but I have not been able to load it from remote server. Does it need some work from the server side or can it be loaded w...

PHP Json Encoding w/ quote escaping in 5.2?

I'm playing with the flickr api and php. I want to pass some information from PHP to Javascript through Ajax. I have the following code: json_encode($pics); which results in the following example JSON string: [{"id":"4363603591","title":"blue, white and red...another seattle view","date_faved":"1266379499"},{"id":"4004908219","titl...

JSON.stringify() and JSON2.stringify() difference?

I downloaded the JSON2.js from http://www.json.org/json2.js and it does not have implementation for JSON2.stringify() To be able to call a wcf service from jquery, I am using a helper class that uses JSON2.stringify() What's the difference between the two and where do I get JSON2? ...

Django | Python creating a JSON response

Hi, I'm trying to convert a server side AJAX response script in to an Django HttpResponse, but apparently it's not working. This is the server-side script /* RECEIVE VALUE */ $validateValue=$_POST['validateValue']; $validateId=$_POST['validateId']; $validateError=$_POST['validateError']; /* RETURN VALUE */ $arrayToJs = arra...

how to convert json object to string in jquery

hi, in my jquery code, i made ajax request and server returned data in JSON like this: {"list":{ "category":"book", "item":[ {"title":"jQuery Cookbook","author":"Tom","publisher":"Wonderland"}, {"title":"PHP Cookbook","author":"Jack London","publisher":"O'Reilly"} ] } } in my jquery c...

Do parameters of a JSON style object always need to be in quotes?

For Example: myJSON = { param1:val1, param2:val2 } vs. myJSON = { "param1":val1, "param2":val2 } Also are there any browser compatibility issues or possible exceptions that may arise out of using one or the other? ...

JSON Feed Returning null while using jQuery getJSON

http://portlandonline.com/shared/cfm/json.cfm?c=27321 It's returning null. I don't really have access to this. I have to have a server admin update the feed to my liking, so if you can tell me how to get this to work as is, without adding tags to my HTML please let me know. I will be using this with jQuery, and ive been trying to use g...

Json HTTP Module stream issue

Hey, I have an HTTP Module that I use to clean up the JSON returned by my web service (see http://www.codeproject.com/KB/webservices/ASPNET_JSONP.aspx?msg=3400287#xx3400287xx for an example of this.) Basically it relates to calling cross-domain JSON web services from javascript. There is this JsonHttpModule which uses a JsonResponseFil...

Is this a correct json format....

I want to get a fair idea about json format... I am using php in which i have converted my result array to json like this $result = mysql_query("select dStud_id,dMarkObtained1,dMarkObtained2, dMarkObtained3,dMarkTotal from tbl_internalmarkallot"); $JsonVar = json_encode($res); echo "<input type='text' name='json' id='js...