I have a list of JSON objects (received from a nosql db) and want to remove or rename some keys. And then I want to return data as a list of JSON objects once again.
This Stackoverflow post provides a good sense of how to use mochijson2. And I'm thinking I could use a list comprehension to go through the list of JSON objects.
The par...
Can any one help: why json decode fail to decode this string?:
[["34372",0,0,190.94614747307494,11.804232804232774,"201","","1","0","no","0","","2394","381","",null,"group_indl_1"],["34373",0,0,190.94614747307494,11.804232804232774,"201","free_text","1","0","no","0","381","2395","382","<span startpoint=\"0\" color=\"0,0,0,0\" pt=\"35\" ...
I know there maybe similar questions out there, but I still cannot find the answer. Much appropriate anyone who can help me.
There are 5 departments, and each department has 4 products. So I created 5 buttons and 4 tabs, each tab contains a grid. By default the department A is loaded, user can switch tabs to see different products info...
Hey guys,
I'm trying to do some cross domain stuff with YQL and Jquery but i'm having a little trouble with getting this yql query to work right.
Okay so this is the YQL statement i'm trying to get to work:
use 'http://yqlblog.net/samples/data.html.cssselect.xml' as data.html.cssselect; select * from data.html.cssselect where url="www...
Hi
I want to use jsonlib(for mashalling) and jersey(for mapping).
But i wasn't able to find a good tutorial.
Any help?
...
I've read every post about the topic but I don't think I've found a reply to my question, that's driving me crazy.
I got a couple of php files, one stores data into mySQL db, another one read those data: I get data from all over the world and it seems that I succeed to store asiatic character in a right way, but when I try to read those...
I'm using jQuery's form plugin (as suggested in a number of threads like this one) to make an Ajax post to a .NET MVC controller and consume the JSON I get back. It works just fine in Chrome, but in some other browsers, including Firefox 3, the form submit results in a "Save or Open this file" dialog box. The JavaScript looks like:
var ...
I am making a LinkedIn app that is primarily written JavaScript and Flash, but all of the data comes from a Java proxy. I need the data to be in JSON, and unfortunately LinkedIn only supports XML. The best solution is to convert XML to JSON on the server before sending it back to the client, but admittedly my Java skills are not strong...
Can some one help me make the following JSON data:
{
"main": {
"label":"Main",
"url":"#main"
},
"project": {
"label":"Project",
"url":"#project"
},
"settings": {
"label":"Settings",
"url":"#settings",
"subnav":[
{
"label":"Privacy",
"url":"#privacy"
},
{
"label":"Security",
"url":"#security"
},
{...
I had just about concluded that jQuery's ajax calls wouldn't work with JSON data in IE 8, no matter what I tried. I found that I could use the jQuery 1.3.2 library and this fixed the problem, but 1.4 simply would not play ball with JSON ajax requests. Even when the JSON data returned was so simple that there was no question of it being...
Is this a bug?
>>> import json
>>> import cPickle
>>> json.dumps(cPickle.dumps(u'å'))
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "/opt/loca...
Hi i am working on displaying a ExtJS Grid. I got everything correct except the part about proxy with in the Json store. When I try to display it throws an error. I figured out that i need to do something in the store but not sure what. the variable list data has the Json Array string. Please any help is really appreciated. thanks
t...
So I've got an object containing several rows from a database (using PHP).
How should I organize them into an array to pass through JSON?
For example, say I want to list some users. I've already done the correct query, and have an object called $u
foreach($u as $user)
{
$rows['name'] = $user->firstname . $user->lastname;
...
What I'm looking to do is create an object with unique ID's. To better explain here's an example:
var obj = new Object({
'a': {
'someVariable': 'heh',
'someOtherVariable': 'Stuff'
},
'c': {
'someVariable': 'heh',
'someOtherVariable': 'Stuff'
}
});
Thing is, the object is going to be used...
I have an object that contains circular references, and I would like to look at the JSON representation of it. For example, if I build this object:
var myObject = {member:{}};
myObject.member.child = {};
myObject.member.child.parent = myObject.member;
and try to call
JSON.stringify(myObject);
I get the error "too much recursion", n...
Hi all:
I'm writing a web app (well, actually it will eventually be an OS X Dashboard widget, but I decided to prototype it first as a simple web page) that needs to load some initializing data from a local JSON file. My code looks like this:
function loadDatos() {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("appl...
Hi all,
I have this JSON to parse
{"files_informations": {
"row":{"value":"artist1"},
"row":{"value":"artist2"}
}
}
I would like to know how can I get the first value artist1 and then the second one artist2
This is what I am doing :
JSONObject myObject = jObje...
Is it possible to read JSON feed available in another site which is HTTPS?
I'm getting empty string in return.
...
I'm creating an iPhone app and I want the app to be able to send some information in the form of JSON string over a web server/app (I really don't know) and display it in a web page or save it to a file. I know how to send the request from the iPhone, the problem is I don't have a clue on how to implement the server side and integrate it...
I'm trying to parse the following json line in jquery:
[{
"pk": 19,
"model": "films.movies",
"fields": {
"length": "92",
"name": "Beetle Juice",
"actor": "Keaton",
"img_set": [{
"pk": 42,
"model": "films.img",
"fields": {
"uploaded": "2010-10-0...