What is the best way to create a JSON web service? We have another team that is using Java and they insist to having all communication done using JSON. I would prefer to use WCF rather than any 3rd party framework.
I found this blog: http://www.west-wind.com/weblog/posts/164419.aspx, and it suggests that the Microsoft implementation is ...
I am trying to make a webpage with Ajax.
Example:
I create a Perl/CGU file that triggers a simple post;
File: ..test.cgi?name=Thomas
Text back: Your name is Thomas!
I create a html file that can use the post, but then the page have to reload.
I use text input and a button.
How can I use Ajax, Perl and JSON easy together?
This is h...
ActiveRecord introduced a change to its default JSON output format. It went from
{ "user": { some_junk } }
to
{ some_junk }
ActiveResource has apparently followed their lead, expecting to consume JSON as
{ some_junk }
I am trying desperately to consume a RESTful web service which emits
{ "user": { some_junk } }
Is there a w...
i have a JSON object sent from the browser to the jsp page. how do i receive that object and process it in jsp. do i need any specific parsers? i have used the following piece of code. but it wouldnt work. essentially i should read the contents of the object and print them in the jsp.
<%@page language="java" import="jso.JSONObject"%>
...
Hi,
I have a .NET webmethod that I have called from jQuery. The method returns some HTML markup that I display within a DIV element.
Once I have the response I use
$("#div").html(result.d);
My question is, what does the .d do? I don't like using code I don't fully understand? Could I get the same result using Eval?
...
What's the difference between the two? Why would you use one over the other?
...
how can i convert a JSON Object to JSONtext in a javascript function. i should pass the JSONtext as a string to JSP.
...
I'm dabbling with a linguistics Javascript project. I'd like to build it using objects to represent Nouns and functions to store Verbs as this makes conceptualizing my project less difficult. I'm using functions as keys to an object (I've written an example below). Will it be possible to serialize this with JSON when it comes time to sav...
Ok so I have a json output that looks like this:
{"Result" : [
{
"Id" : "5214",
"ParentReasonId" : "0",
"Description" : "Billing & Payment",
"SysName" : "Billing & Payment",
"SysCategory" : "Billing & Payment",
"ClientId" : "924...
Without using any third party tools, what is the ideal way to provide JSON response data?
I was thinking of having an ASPX application page to just return the json string response. Any ideas?
...
Hi,
I have configured the web service to use Json as described on this blog: http://www.west-wind.com/weblog/posts/164419.aspx and various other blogs, but I couldn't create a client to consume this service. I tried various things, but invariably I got meaningless exceptions. What is the correct way to implement the (WCF I should add) c...
Can someone convert below code to ASP format?
<?php
$data = '
[
{
"A": "test",
"B": "test",
"C": "test"
},
{
"A": "test",
"B": "test",
"C": "test"
}
]
';
print($_GET['callback'] .'('. $data .')');
while I was testing cross domain restriction workaround, this code works fine with PHP server (of course)...
I'm using XStream and JETTISON's Stax JSON serializer to send/receive messages to/from JSON javascripts clients and Java web applications.
I want to be able to create a list of objects to send to the server and be properly marshalled into Java but the format that XStream and JSON expect it in is very non-intuitive and requires our javas...
I understand that SQL Server endpoint returns data using SOAP.
Does anyone know if they can return JSON data?
Thanks!
...
I'm trying to learn about this feature of javascript I keep seeing in code, but I don't know the name of the construction to google for...
var Stats = {
onLoad: function(e) {
// content
this.variable++;
},
variable: 1
};
Is this way of organising functions and variables based on JSON?
...
Hello,
I got JGrid which works for table and not for the Json format, does any one have json version for
http://www.overset.com/2008/08/30/animated-sortable-datagrid-jquery-plugin-jtps/
Thanks in advance
...
what is the best way to deserialize array of json objects without asp.net?
Json format:
{"results" : [ { "a": "value A", "b": "value B"}, { "c": "value C", "d": "value D"}]}
Please note: Json object should be deserialized into .Net object.
...
Which is faster,
Using an XMLHTTP Get request and than using eval() for the reponsetext
Using the JSONP technique for loading a script and then evaling the innerHtml of the script.
Dynamically adding a script tag to the head of a document where the javascript object is being assigned to a variable?
My gut tells me this should be opt...
I'm able to issue $.ajax() requests to urls that have a '.js' extension just fine when I use {...'dataType' : 'script'...}. However, when I use {...'dataType' : 'json'...} the browser (Opera and FF, so far, but I'll bet it's universal) asks to save/open the results of the request.
Note that my 'success' callback runs fine and uses the r...
OKay, I'm a bit of a javascript n00b, so forgive me if this seems like an obvious question.
I want to write an application using processing-JS, and I'd like to be able to load it with server-side data. I haven't written the server side yet so I can use anything, but it seems the obvious AJAX thing would be to use JSON to upload the d...