What is the best way to implement a open/cross platform web service API to an existing .NET App? Not being a strictly .NET friendly API. It already has ASP.NET exposed web services, but need to be built into an generic API allowing inserts, updates and deletes and returning results based on user criteria in standard SOAP, JSON or other ...
this is what i get as a string from a feed finder url (JSON Encoded):
{"updated":1265787927,"id":"http://www.google.com/reader/api/0/feed-finder?q\u003dhttp://itcapsule.blogspot.com/\u0026output\u003djson","title":"Feed results for \"http://itcapsule.blogspot.com/\"","self":[{"href":"http://www.google.com/reader/api/0/feed-finder?q\u003...
I am reading string data from a PLIST which I am using to create a JSON string (incidentally for use within Facebook Connect).
NSString *eventLink = [eventDictionary objectForKey:EVENT_FIND_OUT_MORE_KEY];
NSString *eventLinkEscaped = [eventLink stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *eventName = [event...
Hi,
I am trying this new method I've seen serializeArray().
//with ajax
var data = $("#form :input").serializeArray();
post_var = {'action': 'process', 'data': data };
$.ajax({.....etc
So I get these key value pairs, but how do I access them with PHP?
I thought I needed to do this, but it won't work:
// in PHP script
$data = json_d...
I'm having trouble porting this code below to c#. my main trouble is with the $fb_activity_array.
$fb_activity_message = '{*actor*} played this game';
$fb_activity_array = json_encode(array('message' => $fb_activity_message, 'action_link' => array('text' => 'Play Now','href' => 'http://yoururltoplaygamegere'))...
When I serialize a list of objects with a custom __get__ method, __get__ is not called and the raw (unprocessed by custom __get__) value from __set__ is used. How does Python's json module iterate over an item?
Note: if I iterate over the list before serializing, the correct value returned by __get__ is used.
...
Hi all,
I am trying to obtain JSON object in the following code. The problem is, I am getting the object twice. Any help is appreciated.
public class MenuAction {
private String ms;
private List<Menu> menus;
public String getMs() {
return ms;
}
public void setMs(String ms) {
this.ms = ms;
}
...
Anyone know how to convert a table of values into a nice JSON object to be manipulated with jquery?
EDIT: Sorry, HTML table!
...
How to generate jSon file via PHP?
I have seen jSon files over 4mb and more.
I think tt's very good practice to keep such big data cached than taken from database everytime.
And update it one a week or a day.
Thanks
...
I have the following JSON:
var json = {
"system" : {
"world" : {
"actions" : {
"hello" : {
"src" : "hello world/hello world.js",
"command" : "helloWorld"
}
}
}
}
}
I have the following javasc...
I'm writing as simple application that comunicate with an external server.
The server currently support yaml, xml and json.
Which encoding is fastest on IPhone?
Which has better support?
What libraries do you suggest?
...
Hello everyone,
I am new to ExtJs and I am just having a hard time reading the json array received from struts2 application.
Following is the json array that I received from struts application
[{"children":[{"children":[],"cls":"file","id":11,"leaf":true,"text":"A Child 1"},{"children":[],"cls":"file","id":12,"leaf":true,"text":"A Ch...
having an issue with simple JSON parsing, wondering if someone could quickly spot any errors in this syntax?
function getFavs() {
$.getJSON('http://www.example.com/scripts/test.json', function(data) {
$('#main-content').html(data.foo);
});
}
the JSON file is as follows:
{
"foo": "The quick brown fox jumps over the ...
How can this be that this error was raised? I entered this:
def json(self):
return json.dumps(
{
'items': self.items
}
)
and got that error (because self.items was an empty queryset (Django)
but then,
def json(self):
return json.dumps(
{
'items': [] # Pass in empty list to...
I've derived from ( the excellent ) PropertyBag class and then want to serialize to Json using DataContractJsonSerializer. Unfortunately the dynamic properties are not showing up in the JSON despite being created with a DataContractAttribute. How can i serialize these dynamic properties?
using System;
using System.ComponentModel;
using...
Hello,
I have a problem with parsing a JSON result. This is what I get from my HTTP request:
{"subscriptions": [
{"id":"A", "title":"A title"},
{"id":"B", "title":"B title"},
]}
And this is what I'm doing in my code:
// Getting the result<br>
NSString *str = [[NSString alloc] initWithData:receivedData encoding:NSASCIIS...
Once I create dom elements base on json data with jtemplates, what is the best way to reorder those elements based on changes to the json data (sorting, filtering, etc.).
...
Hello everybody.
I am creating a simple Changelog lib in CodeIgniter that will basically log a message everytime someone adds, deletes, changes or publish a blog post. I will log messages in files by batches of 300. So every 301st message will go in a new file. At first I wanted to write the logs to simple .log files but then I got the ...
Is there an easy way to populate my C# Object with the JSON object passed via AJAX?
//This is the JSON Object passed to C# WEBMETHOD from the page using JSON.stringify
{"user":{"name":"asdf","teamname":"b","email":"c","players":["1","2"]}}
//C# WebMetod That receives the JSON Object
[WebMethod]
public static void SaveTeam(Ob...
I need to transfer a significant amount of structured data that goes something like this in XML -
<person>
<fname></fname>
<lname></lname>
<DOB></DOB>
.
.
</person>
Each person record has 5 fields, and each time the app is opened, about 30-40 (possibly more) person records will be loaded.
Will XML be a good imple...