I have an application written in ruby (that runs in the JRuby VM). When profiling it, I realized that it spends a lot (actually almost all of) its time converting some hashes into JSON.
These hashes have keys of symbols, values of other similar hashes, arrays, strings, and numbers.
Is there a serialization method that is suitable for s...
I have been cosuming webservices using alducente.services.WSDL classes with old ASP.NET services from Flash.
Trying the same as3 calls with the new WCF services I get the error that the method I am calling does not exist.
According to http://stackoverflow.com/questions/1614157/flash-connecting-to-a-wcf-service I have declared the func...
I have this code:
function useHttpResponse()
{
if (xmlhttp.readyState==4 )
{
var response = eval('('+xmlhttp.responseText+')');
alert(response);
for(i=0;i<response.Users.length;i++)
alert(response.Users[i].UserId);
}
}
When i alert, the first alert is "[object Object]"
Why is that so? I need to remove that...how?
...
I'm looking for a JavaScript library that will allow me to query complex JSON objects using a LINQ-like syntax. A quick search found a couple of promising options that look they might offer what I need:
LINQ to JavaScript and jLinq
Does any one have any experience
using them?
What are some pros and cons?
Is the performance comparable...
I've recently read about the model validation capabilities of ASP.NET MVC which are all very cool until a certain point. What happens if the application doesn't know the data that it works with because it is all stored in DB and built together at runtime. Just like in Drupal, I'd like to be able to define custom types at runtime, and ass...
I want to display data in a tabular form using <ul> and <li> as shown below:
mydata mydata mydata mydata mydata mydata
mydata mydata mydata mydata mydata mydata
mydata mydata mydata mydata mydata mydata
I cannot use <table>; I have to use <ul> <li>. Actually the problem is with OpenSocial while rendering data coming from JSON <li repe...
Could not find any examples of @JsonTypeResolver usage in the docs or elsewhere.
...
How do I know if a variable is JSON or if it is something else? Is there a JQuery function or something I can use to figure this out?
...
Hello! I have trouble with JSON response compression. I look to response headers after uploading website to production server (Windows 2008, IIS 7) and found uncompressed response. Turning on "Enabled static compression" and ""Enable dynamic compression" in IIS control panel does not effect. ASPX pages was responsed gzipped, but webservi...
I have an asp.net page which is returning a list of object as a json string to an ajax request. The string is as follows :
[
{"Name":"Don","Age":23,"Description":"Tall man with no glasses"}
,{"Name":"Charlie","Age":24,"Description":"Short man with glasses"}
]
I want to access each field individually, like the name of the pers...
I have a list of person objects which I want to send in response to a jquery' ajax request. I want to send the list into JSON format. The list is as follows -
List<Person> PersonList = new List<Person>();
Person Atiq = new Person("Atiq Hasan Mollah", 23, "Whassap Homie");
Person Sajib = new Person("Sajib Mamud", 24, "Chol kheye ashi")...
I can create a sparse php array (or map) using the command:
$myarray = array(10=>'hi','test20'=>'howdy');
I want to serialize/deserialize this as JSON. I can serialize it using the command:
$json = json_encode($myarray);
which results in the string {"10":"hi","test20":"howdy"}. However, when I deserialize this and cast it to an arr...
I've been searching around trying to find an answer to this question, and I can't seem to track it down. Maybe it's too late in the evening to figure the answer out, so I turn to the excellent readers here.
I have the following bit of JSON data that I am pulling out of a CouchDB record:
"{\"description\":\"fdsafsa\",\"order\":\"1\",\"...
Ok so i have a json array like this
{"forum":[{"id":"1","created":"2010-03-19 ","updated":"2010-03-19 ","user_id":"1","vanity":"gamers","displayname":"gamers","private":"0","description":"All things gaming","count_followers":"62","count_members":"0","count_messages":"5","count_badges":"0","top_badges":"","category_id":"5","logo":"gamer...
Can somebody help me to suggest how can I get the play list from the youtube URL:
this is the URL :
http://www.youtube.com/CalgaryStampede1912
And I want to get the playlist or the first 2 videos from this video category with jQuery .
Or there is some jQuery plugin for that ...
Thank You !!!!!
...
I have a two dimensional JSON array where each element contains several attributes. The example below is intentionally simplified:
var map_data = { "1":
{"1":{"name":"aa"},"2":{"name":"bb"}},
"2":
{"1":{"name":"cc"},"2":{"name":"dd"}}
};
I try to parse the dat...
I've got in-place editing on a page in my app (using Rails 2.3.5 and jQuery). I want to know how to display an error on the page when the update fails.
I'm using ajax (an XMLHttpRequest) to save an update to a Comment object. The controller has an update method like this:
def update
@comment = Comment.find(params[:id])
respond_to d...
everytime my page loads, im supposed to create a datatable (also a jquery plugin)
but when im fetching the contents, using .ajax or .getJSON always goes straight ahead to the error function, without even telling me what went wrong inside the callback
$.ajax({
cache: false,
type: "POST",
url: oSettings.sAjaxSource,
data: ...
Hey,
I'm new to python so I really don't know the language very well.
the following example was taken from here http://docs.python.org/library/json.html
>>> import json
>>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
[u'foo', {u'bar': [u'baz', None, 1.0, 2]}]
what does the u mean? and how do i know which elements are availa...
I have a method with the following signature:
public ActionResult RenderFamilyTree(string name, Dictionary<string, string> children)
I'm trying to call it from javascript using jQuery like this:
$('#div_render').load(
"<%= Url.Action("RenderFamilyTree") %>",
{
'name': 'Raul',
[
{'key':'key1','...