I've been trying to make this work for some time now, but I think I need someone on the outside to see what I'm doing wrong. In my app, I'm getting a JSON value from a web server, and parsing it into my table view.
responseData = [NSData dataWithContentsOfURL: [NSURL URLWithString: @"http://myserver/json"]];
NSString *responseString = [...
Hi,
I have a json output of list of products(menu) and their prices.
I have a application tab on my facebook fan page.
{"menu": {
"id": "file",
"name": "productname",
"popup": {
"price": [
{"value": "$4"},
]
}
}}
The product list or menu is long. I want to use fbjs to loop through it and extract productname a...
I'm looking to reduce storage requirements for JSON data by deltifying it against a known set of defaults. Basically, what I want is an inverse for jQuery's .extend() function, such that the following test passes for arbitrary JSON-compatible objects:
function test_delta(defaults, delta) {
var current = $.extend(true, {}, defaults,...
In mixing and matching older tutorials with recent posts on MVC 3 Preview 1, I run into the following problem. I am trying to move to JSON-driven edits of my Fighter model (and the underlying db) instead of 'plain old' edits without JSON.
I have an edit view (that uses a Shared EditorTemplate, fighter.ascx) setup for my Fighter class (w...
I've got a jqGrid setup to post to a URL using the content type of application/json:
$("#jqCategoryGrid").jqGrid({
datatype: "json",
mtype: 'POST',
url: "Webservices/TroubleTicketCategory.asmx/getCategoryData",
ajaxGridOptions: { contentType: 'application/json; charset=utf-8' },
// **UPDATE - This is the fix,...
Hi,
I wrote the json reader to read the data & works fine with the below data.
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
but the when j...
I'm setting up a caching system in PHP for database queries.
So when a query like "SELECT * FROM table" is called, it either returns the cached results of that query or the results directly from the DB.
$query = "SELECT * FROM table";
[...]
$data = mysql_query($query);
[...]
fwrite($file,json_encode($data));
[...]
The problem is I'm ...
Hi,
I am having a problem passing a json string back to a php script to process.
I have a json string that's been created by using dojo.toJson() that contains a / and looks like this:
[{"id":"2","company":"My Company / Corporation","jobrole":"Consultant","jobtitle":"System Integration Engineer"}]
When I pass the string back to the ...
Dead silence! Not often you experience that on Stackoverflow... I've added a small bounty to get things going!
I've built a json document containing information about the location of various countries. I have added some custom keys. This is the beginning of the json-file:
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature"...
how can i get JSONObject from request(HttpServletRequest) in servlet..
...
Hello,
I am getting json data from my server to show them as a table.
$('#queryFrom').ajaxForm({
dataType: 'json',
beforeSubmit: showRequest, // pre-submit callback
success: processJson,
e...
I need to store a json string in database and to select entries depending on the values of json object. Is there any way to do this selection using mysql ? (i am using php, mysql 5.1)
...
I'm developing my first windows phone 7 app, and I've hit a snag. basically it's just reading a json string of events and binding that to a list (using the list app starting point)
public void Load()
{
// form the URI
UriBuilder uri = new UriBuilder("http://mysite.com/events.json");
WebClient proxy = new WebClient();
...
Is there a way to turn a form into a complex JavaScript object based some structured form?
Now, I have no idea if this should be done in a better way, but basically I want something like this:
<form>
<input name="Foo" value="1" />
<input name="Parent.Child1" value="1" />
<input name="Parent.Child2" value="2" />
</form>
and I...
I think my program is skipping result of JSON call.
Is it possible to make a closure function here or make the program wait for JSON call to return?
function username_not_duplicate(username) {
var function_name = "get_username";
var parameters = [username];
var url = "/get_functions.php?function_name=" + function_name + "¶m...
Hi,
I am thinking of this idea:
1. Request data from server and write to javascript file in json format using C#
2. When the page loads, the page loads the js file and I can use the data using javascript?
is this a good or bad idea?
is there any example somewhere doing that?
thanks
...
Hey can anyone tell me what datatype this is? it wont parse as i've stripped out sensitive data. Am I correct in thinking its json?
a:7:{s:12:"competitions";a:893:{i:1;s:10:"Ersie";i:5;s:19:"General
News"1510126584;s:0:"";i:1019;s:0:"";i:8284;s:0:"";i:191016;s:0:"";i:284;s:0:"";i:91019;s:0:"";i:81863;s:0:"";i:1563;s:0:"";i:7101...
Hi folks,
I'm working on a GWT project, in which I have to fetch some JSON data from a real web-domain. Due to SOP policy, GWT fails to get those data.
To address this, as suggested in GWT docs, I have created some proxy servlets within GWT, which in turn should call the actual JSON provider external url.
Does anybody know how should ...
I try reading a JSON file from R using rjson but keep getting errors. I validated the JSON file using various online validators. Here is the content of the JSON file:
{
"scenarios": [
{
"files": {
"type1": "/home/blah/Desktop/temp/scen_0.type1",
"type2": "/home/blah/Desktop/temp/scen_0.type2"
...
I've tried defining EXTJSON_SBJSON by setting my project's Other C Flags:
-DEXTJSON_SBJSON
It doesn't work: TTURLJSONResponse still uses YAJL.
...