We have a ".properties" file that has some values persisted as JSON. I keep getting bitten by special characters, though -- the org.json.JSONObject isn't very verbose about what causes it to choke, so it takes forever to figure out that I wrote {"key":"this is a \"Value\""}, but I read {"key":"this is a "Value""}. Obviously, the latter...
I'm playing around with a little web app in web.py, and am setting up a url to return a JSON object. What's the best way to convert a SQL table to JSON using python?
...
For a data send, where the return data contains potential updates for hundreds of elements on a page, is XML or JSON or another data format better, for usage with jQuery's various parsing formats (invoked via ajax() success)?
...
So taking a look at the API doc page here:
http://developers.facebook.com/docs/reference/javascript/FB.api
I'm wondering if the response received back is an HttpResponse or a JSON object. They say that they return a JSON object in the response.
So since they are performing things such as response.name, etc. does it mean we don't need...
Hi everybody,
I'm using CURL to extract some real estate listings.
But, recently, a website changed his way to communicate the phone number:
The visitor must click on a "Show the phone number" link that returns the result in jSon.
I found these information with Firebug:
http://www.realestate.com/phone/click.json?Id=023DSFS
And for th...
Hi,
I have some JSON with Two objects and these each have 3 objects nested.
{
"FirstPerson": {
"number": "101",
"a10": "1001",
"a20": "1002"
},
"SecondPerson": {
"number": "102",
"a10": "2001",
"a20": "2001"
}
}
In c# asp.net mvc2 I've been able to get to "FirstPerson" ...
Hi, this is driving me nutters.
jQuery 1.4.2, windows XP sp3
Here is my test.
Load firefox 3.5+
http://plungjan.name/test/testcors.html
works
Save the file to harddisk and run from there
From my office the external works and the internal does not
What is also interesting is that I cannot run both in one go.
Background:
I do a GE...
Hi,
I've gone through the http://css-tricks.com/examples/BuildYourSocialPage/ which is great, but I just want to customise the amount of Flickr images it pulls in(6) with the API.
I know I could set a div with overflow:hidden to show the desired amount, but I don't want the code to be hacky.
Can anyone help?
Also I'd like to displa...
Is it possible to write JSON parser without using recursion ? If it is, what approach would you suggest ?
...
I'm accustomed to doing import json in Python 2.6, however I now need to write some code for Python 2.4. Is there a JSON library with a similar interface that is available for Python 2.4?
...
example 1: ==> [{"name":"luxy"}]
example 2: ==> {"name":"luxy"}
Both example I got are valid json format...
in xcode... I write below:
[dictionary objectForKey:@"name"]
in example 2 I can get "luxy" but how come if I use example 1 then it fails?
is my xcode wrong?
...
Hi guys!
Ive got a problem - in my grid I linked two combobox (country and town) . I am choosing country and correctly get all towns(JSON), but on next change country combobox my town combobox not reload. What im doing wrong?
Here my code
Ext.onReady(function(){
Ext.QuickTips.init();
var Organization = Ext.data.Record.create([{
nam...
I need to JSON-encode a list using mochiweb.
How do I get the following:
List = ["This is message 1.", "This is message 2.", "This is the last message"]
mochijson2:encode({struct,[{messages,list_to_binary(List)}]
to produce this bit of JSON:
{"messages":"["This is message 1.","This is message 2.","This is the last message"]}
...
OK, I am getting null for whatever reason I cannot fathom.
Here is my code:
import java.util.*;
import java.io.*;
import com.google.gson.*;
public class readGoogle {
public static String MapTitle;
public static Data data;
public static Item item;
public static String dan;
public static FileReader fr;
pu...
I have a large amount of static/rarely changing data in JSON format. To improve my ASP.NET MVC application performance, I would like to move them to a CDN (Amazon Cloud Front).
However when I do that, the cross domain policy kicks in and jQuery makes a HTTP OPTIONS method call instead of HTTP GET and Amazon denies the requst with "403 ...
Hello,
I have configured in an Spring 3 application a ContentNegotiatingViewResolver so when I invoke a controller with a URL which looks like **.json it returns a json object using jackson library.
If I call this method:
@RequestMapping("/myURL.json")
public List<MyClass> myMethod(){
List<MyClass> mylist = myService.getList();
...
I have this JSON string:
{
"success":true,"user_id":"309","id":"309","sessId":false,"email":null,"name":"Mai Van Quan","username":"quanmv","role":"Reseller Admin","messages":"","org_name":null,"microPayNumber":"4949","microPayWord":"neocam","mobile":null,"permissions":{"ADD_CAMERA":true,
"REMOVE_CAMERA":true,
"EDIT_CAM_GENERAL"...
Hi,
I am using facebook javascript sdk to retrieve logged in users info.
I am able to retrieve user's name and Id with response.id and response.name. I want to see the complete json response I get from facebook.
I am new to json. I want to be able see the entire response. I appreciate any help.
function login(){
FB.api('/me', fu...
This JSON post works, but if I start clicking them quickly, they start returning 500 errors. I'm guessing this is because they're not queueing correctly, and they fall apart when they can't go out one by one. Is there a way to queue this in JSON?
Here's my button in HAML :
= f.check_box :has_sticker, :style => 'width: 20px;', :class =>...
I am integrating Highrise into a Google Chrome plugin and have issues with a XHR responding xml.
I am pretty positive that Highrise
API doesn't return a JSON.
I have a XHR in "background-script" , then I pass the result into "content-script" with a
chrome.tabs.sendRequest(tabId, {
data :data });
and here is the issue I ne...