json

JSON .NET asmx and Flex3

Hi i wrote webservice in .net which return json string WebService(Namespace = "AndrewRowland")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService] public class Service1 : System.Web.Services.WebService { [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string HelloWorld() ...

what is Deserialize & Serialize in JSON,

Hi, I'm new in JSON, but now I need to use JSON for my Flash ActionScript 3.0. So I found one lib for JSON and I have seen the terms Deserialize & Serialize what does that means. ...

strip html from json to jqgrid in rails app

Hi, In my rails app, I am setting up my own admin with the help of http://github.com/linoj/gridify. That works really well with one exception: HTML gets rendered in the table view which blows the cells up like crazy. I use white-space:nowrap; in my css which helps against other formatting trouble. I still need to either get rid of...

Serialize a .net Object directly to a NetworkStream using Json.net

Hello Is there any way to have Json.net serialize an object directly to a NetworkStream? In other words, have Json.net send the serialized result to the network as it serializes the object (in a streaming fashion). I would like to avoid having to serialize the object to memory and then send it via the NetworkStream. Any thoughts? Re...

JSON: key items by id or not?

I've been charged with creating a simple data source so clients can retrieve a list of things by JSON. Each thing has an ID, so my first impulse was to create something like { "13": { "name": "foo", "height": 17 }, "18": { "name": "bar", "height": 22 } ... } But I've been told that this...

Why returned JSON data is in different data format?

Hello all, In the following two different forms, both server side php script return something like this json_encode($results); So I assume that the client side should get JSON data. However, why in case I, the returned data is text and we have to make some conversion before we can access the JSON data. in case II, the returned data ...

Logging in to Yahoo Messenger using their newly released API

Hello, Im trying to login to yahoo messenger using the newly released messenger api.I referred to http://developer.yahoo.com/messenger/guide/ch05s03.html .I signed up for the API and have got a Consumer Key and a Consumer Secret.My yahoo id is [email protected](not the real one,just for the sake of example).To login i hit the following ur...

$.ajax JSON not passing values on complete

Hello, I'm having an annoying issue, on complete i get undefined when trying to make simple url validation. success working fine. i get a valid json response: {"error":"some error"} and this is my jQuery $("#myform").submit(function(){ dataString = $("#myform").serialize(); $.ajax({ type: ...

How to retrieve facebook user info

Hi, I am using facebook's graph api to retrieve user's information. First I retrieved the access_token. Then, I tried using jquery.getJSON() method to retrieve user's id and name. <div id="result"></div> <script>$.getJSON("https://graph.facebook.com/me/?access_token=111978178853984|2.lg65A3c0atficNsFcf7Rog__.3600.1279922400-100001XX...

populate UITableViewCell with JSON Base64?

Is it a good idea to return thumbnail images in base64 through JSON in a RESTful call for populating UITableViewCell's? Or should one really make n requests for n images (lazy loading)? What's better? Thanks! ...

Standard JSON representations

We are building a webservice which consumes and produces JSON. Problem: We are kind of confused about how to represent some specific details of a object. Example: we specify any empty element or null element as null in JSON The question we ask our self is how do we represent a object when its properties are all null. example: car is...

Passing JSON array values as JQuery selectors

Hi, I'm trying to pass JSON array values into my javascript file and use the values as selectors to call methods on corresponding html divs. for example: function clickEvents(items) { for (var r = 0; r < items.length; r++) { var omega = items[r].id +; $(omega).click(function() { alert('Thanks for adding item numb...

Accesing facebook data via RSS or JSON is possible?

Hello guys, is any way to access the list of links publicated by my friends on facebook via RSS or Json (or any other standard format) ?? What information from my friends feeds on facebook can be access in standard format? (and how) Thanks! ...

fullcalendar adding events from mysql json - adding eventClick returns blank page

I am pulling events into the calendar using JSON and php. I am know trying to add evenClicks or mouseOver events the the calendar and when I do I get a blank page. My JS knowledge is rather novice so at this point I'm stuck Heres my calendar script $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'pr...

json error: parsererror

Hello Guys, am developing a balloon notifications for my social network. i came across this error when there's 2 or more notifications. i checked my json response on jsonlint.com i got error at line 6 JSON response: { "nid": "1101", "img": "<img src=\".\/images\/icons\/he_wall_post_icon.png\">", "notifier": "Sarah O&#03...

how to get the geo data from geo-rss via google ajax feed api .

this is my code that has geo-rss from google maps rss: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google AJAX Feed API - Simple ...

Getting data from nested array passed to Javascript / Jquery from PHP / Cakephp via JSON

Sorry for asking a basic question like this but I've been reading on this for a few hours now and the examples aren't making sense to me in context of the way my array is.. I have been able to pass this from my server side (cakephp) to the javascript (I'm using jquery) but after that, I am lost as to how to make use of the data.. I tried...

How to extract information from the httpsocket get request?

Hi, I am using cakephp. I am trying to use httpsocket to get information. <?php App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $results =$HttpSocket->get('https://graph.facebook.com/XXXXXXXXXXX/', 'access_token=111978XXXXXXXXXXX|2.1lD7XrS1nXXXXXXXXXXX__.3600.1279976400-XXXXXXXXXXXXX|9vJZuRDvlzLhFfXXXXXXXXXX...

How to facebook user's information.

Hi, I am using facebook graph. I am able to retrieve the access_token. Now I want to get info using https://graph.facebook.com/XXXXXXXXX/?access_token=111978178853984|2.1lD7XrS1n7C3UgudmiSpQg__.3600.1279976400-10000XXXXXXXXX|9vJZuRDvlzLhFfGkqGkg92KmDSE. I already multiple ways to retrieve json output. 1) jquery.getJSON method - Fal...

Infinite Recursion with Jackson JSON and Hibernate JPA issue

When trying to convert a JPA object that has a bi-directional association into JSON, I keep getting org.codehaus.jackson.map.JsonMappingException: Infinite recursion (StackOverflowError) All I found is this thread which basically concludes with recommending to avoid bi-directional associations. Does anyone have an idea for a workaro...