I've been looking into several JSON parsers for .NET (LitJSON, JsonExSerializer and JSON.NET), and was wondering if anyone has any experience with them and can shed some light on the differences and the pros and cons for each of them.
...
I'm trying to post JSON via AJAX to a Classic ASP page, which retrieves the value, checks a database and returns JSON to the original page.
I can post JSON via AJAX
I can return JSON from ASP
I can't retrieve the posted JSON into an ASP variable
POST you use Request.Form, GET you use Request.Querystring......... what do I use for JSO...
i m using auto suggest using Ajax Json .
now when a user select a user name , i want to send user on the link of that user name
my json data is coming in this way
{
query:'hel',
suggestions:["hello world","hell boy ","bac to hell"],
data:["2","26","34"]
}
now what i want that user goes to http://userProfile...
I am getting a timeout with the following code at readUTF. Any idea why?
hc = (HttpConnection) Connector.open("http://twitter.com/statuses/user_timeline/" + username + ".json");
int rc = hc.getResponseCode();
if (rc != HttpConnection.HTTP_OK) {
throw new IOException("HTTP response code: " + rc);
}
DataInputStream dataInputStream =...
I have passed some JSON to my page via a webservice. I used JSON.NET to convert XML to JSON. The JSON output looks ok to me, but I am unable to access some of the items in the response. I am not sure why it is not working. I am using jQuery to read the response and make the webservice call. Even when I try to read the length of the array...
Just to get this out in the open I am new to JAVA, KSOAP, and JSON. So I'll try to explain this the best I can.
A while ago I created a webservice to be consumed by Blackberry Apps that we're built using the plug in for Visual Studio. Now the project I am working on, I want to consume the same webservice for Android devices. For the mos...
I have some stored JSON strings stored in the DB which I want to return to the client as JsonResult . I know that Json(object) turns an object into JsonResult but what if I already have the result in a string ? can I cast it to JsonResult
...
I usually use JSON with jQuery to just return a string with html. However, I want to start to use Javascript objects in my code.
What's the simplest way to get started using json objects on my page?
Here's a sample Ajax call ( after $(document).ready( { ... }) of course:
$('#btn').click(function(event) {
event.preventDefault();...
I have 6000 data of district, subdistrict. I need to represent this on dependent dropdown. The datamodel is for example;
class Location(db.Model):
location_name = db.StringProperty()
//location_parent = db.IntegerProperty()
location_parent = db.ReferenceProperty() //
location_parent is reference to key() or id()? Still can...
How can I use jQuery for messing with a particular div, but not in the current document - in a variable, that contains HTML?
The point is that I want to show a preview of a page (a piece of it's content) in a modal window, when the link to this page is clicked. Well, onClick I load this whole HTML into a variable via JSON and then... ho...
Hello all,
I want to create a plugin for wordpress to automatically serve pages containing data pulled from a provider's API.
The API returns one or more records containing data for that record and I simply want to have the plugin intercept the request, call the API with parameters pulled from the request URI and display the data using...
Any good examples/tutorials of unpacking JSON strings with the C++ JSON_Spirit library?
Something that can traverse a json_spirit::Value object and pretty-print it would be ideal.
...
my apologies in advance for a python and json nubie question. json seems to be hiccuping on the following statements:
{"delete":{"status":{"id":12600579001,"user_id":55389449}}}
code snippet:
temp = json.loads(line)
text = temp['text']
I get the following error output when the above code snippet encounters lines similar to the abov...
You can display a Value's type like this:
cout << val.type() << end;
and it print a number.
How can I map this number back to the actual type?
besides peeking in the header file, of course, which reveals all...
enum Value_type {
obj_type,array_type,str_type,bool_type,int_type,real_type,null_type
};
...
In PHP I'm running a mysql_query that has an ORDER BY clause. I'm then iterating through the results to build an associative array, with the row_id as the key.
Then, I'm calling json_encode on that array and outputting the result.
This page is loaded with AJAX, and defined in a Javascript variable. When I iterate through that Javascr...
Hi,
I am a newbie using SlickGrid. I have searched some of the sample apps out there but I am still stumped. If anyone can refer a sample or tutorial on SlickGrid using Asp.Net doing the following:
Get data via JSON
Implement paging, sorting, searching
Pass the selected rows key to code behind for processing or call a codebehind funct...
I am currently working on a module that takes one of our business objects and returns a json representation of that object to the caller. Due to limitations in our environment I am unable to use any existing json writer, so I have written my own, which is then used by the business object writer to serialize my objects. The json writer is...
can anyone please point me in the right direction for a json database on the client side for the duration of the pages life.
example:
i have a page with a canvas that i can add elements to and move them around, but i wish to create a Json object so that if an item is added to the canvas, the details are also added or updated in the jso...
Hi ,
I am using jqGrid 3.6.4 and a jquery 1.4.2 . in my sample i am getting following json data format & i want to map these json data into rows of a jqgrid
{
"page": "1",
"total": 1,
"records": "6",
"rows": [
{
"head": {
"student_name": "Mr S. Jack ",
"year": 2007
},
"sub": [
...
Hi all,
I have a fairly simple question: In Javascript how can I return the boolean (if its found in the JSON) rather than the actual value?
Example:
var myJSON = {
"foo" : "bar",
"bar" : "foo"
};
var keyToLookFor = "foo";
var found = myJSON[keyToLookFor];
if (found) {
// I...