json

Json and images

hi, I've got a db on a server and want to get some data fro my iphone. I use TouchJson and everything works fine but I've got a little problem. I don't know how to download images. When I try to build and run the app the emulator just crashes. Got any ideas what to do? ...

Tabbed javascript widget for a Rails app

A user registers on our Rails app and they're given javascript to embed a widget in their website. The widget has a tabbed interface, like the JQuery tabs http://stilbuero.de/jquery/tabs_3/. iFrames have been tested, but the widget form factor and cross-domain policy negates the use of iframes. The widget is very dynamic and will often u...

JQuery $.getJSON appends a question mark to the request URL

I have the folliwng JSON request code on an ASP.NET MVC web application: var userID = 'id=' + $('#namesList').val(); $.getJSON('/Person/GetPerson/', userID, function(data) { $('#collar').text(data.collarNumber); $('#name').text(data.Name); $('#email').text(data.EmailAddress); }); Thi...

Is JSONRequest a global Javascript object ?

My goal is to asynchronously call a URL via POST request (REST Webservice) to increment a statistic on one of my object. I am a newby web developer and I discovered JSON yesterday. Since JSON seems a lot popular and handy I went to www.json.org and discovered a JSONRequest object which seems to able one to send POST/GET request asynchro...

what is the jqgrid footer json format

hi. i am currently trying to solve my problem with the total in the footer. i tried searching in the internet with some examples, but they are using php, and i am using java. can you please show me what exactly the json looks like for this php script $response->userdata['total'] = 1234; $response->userdata['name'] = 'Totals:'; is thi...

how to parse using json

how do parse this data string using json parser {"product": ["collection1", "collection2"]} ...

how to convert complex json to somthing i can work with in c++

Hi im using qt , and i parse complex json data structure but i find my self doing to many loops each time i need to parse this JSON , i wander how or what can be the best way to handle big JSON structures ...

How do I get from JS array through JSON to a PHP array? (I'm at least halfway there)

I have a JS array, which I convert to JSON JS mycode[0][0]=true mycode[0][1]="element1" mycode[0][2]=400 mycode[0][3]=150 mycode[0][4]=148 mycode[0][5]=148 turned into JSON: [ [ true, "element1", 400, 150, 148, 148 ] ] Now I push this to PHP PHP code: $decoded = jso...

MVC JsonResult Method not accepting parameter

I have an MVC JsonResult Method that accepts one string parameter: public JsonResult GetDestinations(string countryId) { List<Destination> destinations = new List<Destination>(); string destinationsXml = SharedMethods.GetDestinations(); XDocument xmlDoc = XDocument.Parse(destinationsXml); var d =...

MVC and jQuery data retrieval.

Hello, I am using mvc and jQuery and I am trying to display someone's profile with some additional institutions that the person belongs to. I am new to this but I've done something like this in ProfileControler: public ActionResult Institutions(int id) { var inst = fr.getInstitutions(id); return Json(inst); } ...

server client iphone with json

I am trying to make a server client app for iphone and I am using json. I want to load and store some text and some images to my sql server. I was able to get the text from my server but not the images and I have not figured out how to post things to my server.Am I in the right track here or should I start using xml. Can anybody help me?...

Asp.net JSON Deserialize problem

I want to deserialize the following JSON string: [ {"name":"photos","fql_result_set":[{"owner":"123456","caption":"Caption 1", "object_id":123},{"owner":"223456","caption":"Caption 2", "object_id":456}]}, {"name":"likes","fql_result_set":[{"object_id":123,"user_id":12156144},{"object_id":456,"user_id":140342725}]} ] and get the POCO ...

How can we fill the select tag of html with json result in partialViews in asp.net MVC?

How can we fill the select tag of html with json result in partialViews in asp.net MVC? any article pls send the link? ...

jQuery Validate PHP Response

Hello Everybody, my problem is, I want to validate an email adresse with jquery. Not only the syntax but rather if the email is already registrated. There are some tutorials but they are not working! At first the Jquery Code: <script id="demo" type="text/javascript"> $(document).ready(function() { // validate signup form on keyup an...

Any webservice that returns JSON

Does anyone know of free webservice that returns a list in the form of JSON? I have searched many webservice sites but they all return xml. Geonames.org is not required. List all that you know of please. thanks. ...

JSON Date coming through as Today's date?

I'm trying to convert a JSON date to a dd/mm/yyyy format, which I'm managing to do semi-successfully. The problem I'm encountering is that the date from the record in the DB is for example, 2009-06-29 which is returning the usual JSON /Date(1246230000000)/, however, when I try and turn it into the previously mention dd/mm/yyyy format, i...

How to specify allowed exceptions in WCF's configuration file?

Hello! I´m building a set of WCF services for internal use through all our applications. For exception handling I created a default fault class so I can return treated message to the caller if its the case or a generic one when I have no clue what happened. Fault contract: [DataContract(Name = "DefaultFault", Namespace = "http://...

Python 3.1 twitter post with installed library,

I'd like to be able to post twitter messages from python 3.0. None of the twitter API I have looked at support python 3.1. Since the post proceedure only requires this : JSON: curl -u username:password -d status="your message here" http://api.twitter.com/1/statuses/update.json I was wondering if it is possible with the standard libra...

Removing the "d" object from ASP.Net web service json output

I have some javascript code that processes json output from asp.net web services built with framework 2.0. Now I need to support data returned from framework 3.5 web services. My javascript code assumes a list of objects as return value, which works fine in 2.0. However In framework 3.5, the list is wrapped in a "d" object. Is there an...

How do I copy a JavaScript object into another object?

Say I want to start with a blank JavaScript object: me = {}; And then I have an array: me_arr = new Array(); me_arr['name'] = "Josh K"; me_arr['firstname'] = "Josh"; Now I want to throw that array into the object so I can use me.name to return Josh K. I tried: for(var i in me_arr) { me.i = me_arr[i]; } But this didn't have ...