json

flexigrid problem in zend

i have a page post2.php which prints the json array like { page: 1, total: 239, rows: [ {id:'239',cell:['239','ZW','ZIMBABWE','Zimbabwe','ZWE','716']}, {id:'238',cell:['238','ZM','ZAMBIA','Zambia','ZMB','894']}, {id:'237',cell:['237','YE','YEMEN','Yemen','YEM','887']}, {id:'236',cell:['236','EH','WESTERN SAHARA','Western Sahara','ESH',...

What is simpliest C# function to parse Json String into object?

What is simpliest C# function to parse Json String into object and display it (C# xaml WPF)? (for example object wit 2 arrays - arrA and arrB) ...

FullCalendar not displaying time from JSON events

Greetings, Using FullCalendar (http://arshaw.com/fullcalendar/) to pull events from a MySQL database table via JSON. The events are being displayed in the calendar but for some reason it is ignoring the time (hours, minutes, seconds) of the event. Here is the Javascript from the calendar page - <script type='text/javascript'> $(d...

Json to treeview (<ul>)

Hi I get the following data back from my WCF Data Service (I cut out the metadata) { "d" : [ {"CodeId": 6, "Title": "A Child Sub Item", "Parent":}, {"CodeId": 5, "Title": "Another Root Item", "Parent": -1}, {"CodeId": 4, "Title": "Child Item", "Parent": 2}, {"CodeId": 2, "Title": "Root Item", "Parent": -1} ] } I am trying to ...

How can I marshal JSON to/from a POJO for BlackBerry Java?

I'm writing a RIM BlackBerry client app. BlackBerry uses a simplified version of Java (no generics, no annotations, limited collections support, etc.; roughly a Java 1.3 dialect). My client will be speaking JSON to a server. We have a bunch of JAXB-generated POJOs, but they're heavily annotated, and they use various classes that aren't a...

ASP.NET MVC: Posting JSON to Controller

I've got this in my controller: [HttpPost] public void UpdateLanguagePreference(string languageTag) { if (string.IsNullOrEmpty(languageTag)) { throw new ArgumentNullException("languageTag"); } ... } And have this jQuery code POSTing to the controller: jQuery.ajax...

how to modify a json array with jQuery

I have the following json array of objects in my code var groups = [ { "gid": 28, "name": "Group 1", "ishidden": false, "isprivate": false }, { "gid": 16, "name": "Group 2", "ishidden": true, "isprivate": false }, { "gid": 31, "name": "Group 3", "ishidden": true, "isprivate": false }, { "gid": 11, "name": "Group 4", "ishidden": false, "...

jQuery getJson returning null

I'm trying to use this api that lets you reference an exact text, but the getJson does not seem to be working, it's just returning null. $.getJSON('http://api.biblia.com/v1/bible/content/KJV.json?key=MYAPIKEY=John+3:16-18&amp;style=bibleTextOnly', function(data) { alert(data); }); I just took the key out, i've been testing it with m...

Cannot get xmlhttprequest.responseText from JQuery

Hi. I'm newbie with JQuery. I got this function function verify_at_bd(){ var u = "foo"; var p = "bar"; return $.post('auth.php', { name: u, password: p, mobile: '' }, function(result){ return result; },'json'); } If I do a c...

Problems with jQuery load and getJSON only when using Chrome

I'm having an issue with two jQuery calls. The first is a "load" that retrieves HTML and displays it on the page (it does include some Javascript and CSS in the code that is returned). The second is a "getJSON" that returns JSON - the JSON returned is valid. Everything works fine in every other browser I've tried - except Chrome for e...

java json controller

I have an Java class, like Library, that contains many fields. I want do ajax call to server and in controller's method I want to have partly initialized @RequestBody Library with only fields, which are present in json object. I read the http://blog.springsource.com/2010/01/25/ajax-simplifications-in-spring-3-0/, but I need not full ob...

jquery $.getJSON only works once in internet explorer

I have a php function which inserts a searchbar into each page on a website. The site checks to see if the user has javascript enabled and if they do it inserts some jquery ajax stuff to link select boxes (instead of using it's fallback onchange="form.submit()"). $.getJSON works perfectly for me in other browsers except in IE, if I do ...

Zend: ContextSwitch Json coming back slashed up

Hello, In my init I have: $contextSwitch = $this->_helper->getHelper('ForceContext'); $contextSwitch->addActionContext('favourite-listing', 'json')->initContext(); In my controller method I have: public function favouriteListingAction() { $newValues = array(); if (isset($_POST['Playlist']) && is_array($_POST['...

How do I use Google's Gson API to deserialize JSON properly?

Hi, In short, this is a sketch of the JSON object I want to parse in JAVA: { object1: { item1: //[String | Array | Object] , item2: // ... //<> more items object2: { /* .. */ } //<> more objects } These are the POJO s I created for parsing (I'll leave out the import statements for brevi...

JSON Serialization of a Django inherited model

Hello, I have the following Django models class ConfigurationItem(models.Model): path = models.CharField('Path', max_length=1024) name = models.CharField('Name', max_length=1024, blank=True) description = models.CharField('Description', max_length=1024, blank=True) active = models.BooleanField('Active', default=True) ...

Ext.data.JsonStore + Ext.DataView = not loading records

Hi guys, I'm trying to make a DataView work (on Ext JS 2.3). Here is the jsonStore, which seems to be working (it calls the server and gets a valid response). Ext.onReady(function(){ var prefStore = new Ext.data.JsonStore({ autoLoad: true, //autoload the data url: 'getHighestUserPreferences', ...

ASP.Net MVC - Need to send other data along with Partial View

I need to send some other data, ideally wrapped in a JSON object, down to the client. As well as that however I need to send a Partial view. Now I can only think of two ways: Send JSON object and then make another call to load contents of partial view into div. Send HTML for Partial View as a property of the JSON object and then load i...

Parse JSON in TSQL

Is it possible to parse JSON in TSQL? I dont mean to create a JSON string, i mean to parse a json string passed in as a parameter. ...

jQuery .getJSON() Not Parsing All Objects

I'm using jQuery's .getJSON function to parse a set of search results from a Google Search Appliance. The search appliance has an xslt stylesheet that returns the results as JSON data, which I validated with both JSONLint and Curious Concept's JSON Formatter. According to FireBug, the full result set is returned from the XMLHTTPRequest,...

what is the correct pronunciation of JSON?

Is it JAY-son? Or is jay-SON? Maybe something entirely different? ...