json

Get IP Address Information such as Country, LatLong, City using Google Maps Data API

Can I use Google Maps Data API to get the IP Address informations such as Country, LatLong, City, etc. The result will be in JSON or XML format that I can parse through C#. Is there any C# Library for Google Maps Data API? I found this interesting site http://www.ipinfodb.com/ip_location_api_json.php this guys even offer their IP addre...

Using JSON.NET to parse JSON generated through PHP

Hello Everyone, I'm sure this has been asked before but I'm not finding quite the information I'm needing so I thought I'd post this. I've written a PHP script that returns a simple JSON object that looks like this: {"status":"success","level":"admin"} I'm doing a standard web request that submits the required data to the script over...

How do I server AJAX calls using JSON with Web Forms?

I know MVC controllers are quite good at serving JSON formatted AJAX requests, but is there any built-in ASP.NET functionality I can use for these type calls from a plain old web forms site? ...

Using YQL to extract data from a page?

Hey all, In this table how would I use YQL/Xpath to get all data members of the column "Complex"? ...

url in json, jqery ajax response

{"imgsrc":"http:\/\/192.168.1.181\/postcardthis\/facebook\/angel_wall.jpg","message":"asdf","friend":"Friend1","error_message":""} this my json, here imgsrc location seems dificult, two slahes. what to do to convert perfect url? ...

JSON and Core Data on the iPhone

I have a core data object graph (consisting of two entities linked by a to-many relationship). I was curious, as a relatively inexperienced iPhone developer, whether anyone could recommend an approach, and a suitable JSON implementation for the iPhone, which would allow me to: 1) convert the core data records into a JSON string (whils...

JSON Parser error

Hello, I've added the JSON parser to my project and try to parse a JSON string. On most strings it works as it should, but sometimes it isn't. My first thought was, that the JSON string is not well formed, but I've checked it with several JSON validators and they all say it's correct. I additionally checked the string for some line brea...

How to create the Google DataTable JSON expected source using C#?

How can I create the JSON source expected by the google.visualization.datatable using C#? Obviously using the JavaScriptSerializer is out of the question since the expected JSON has a weird structure as described on the documentation: var dt = new google.visualization.DataTable( { cols: [{id: 'task', label: 'Task', type: 'st...

What exactly is a hash in regards to JSON?

I am learning JSON, but I found out that you can put what are called "hashes" into JSON as well? Where can I find out what a hash is? Or could you explain to me what a hash is? Also, what's a hashmap? I have experience in C++ and C#, and I am learning JS, Jquery, and JSON. ...

JSON.parse fails in jQuery when PHP response-header contains "application/json"

Hi there, I'm getting a bit of a headache trying to figure this one out. To request some json-data from a PHP-script via Ajax, I'm using the jQuery function: $.ajax({ type: 'GET', cache: 'false', url: ajaxUrl, data: dataString, success: updatePage }); If I don't set content-type in the PHP header to: header('Conte...

Help with parsing JSON result from Bit.ly in .NET

From a .NET assembly (non-web app)... The normal response from Bit.ly is somewhat in the form of below. What is recommended way of consuming that result so that I can easily get the value of the shortUrl field? Since the original URL comes back as a "key", building a model class to deserialize it to and using LINQ does not seem to mak...

Gson toJson method includes escape character when printing Strings

I'm using Gson to convert a Java object to Json. One of the object's fields holds a string containing an escaped double quote, like this: "double quote:'\"'" The toJson method returns the string as above, but I would like to print this instead: double quote:'"' Is this possible using Gson? ...

Extjs & explorer & file upload

We have got an extjs 3.1.1 form with file upload field (http://www.extjs.com/deploy/dev/examples/form/file-upload.html from here, the latest). After successful submission the reply is {"success":true} with application/json content type. We use Zend Framework as backend, json is generated with json helper. This works like a charm in fire...

Passing JSON to Python script via AJAX

What's the ideal way to pass a large JSON data object from Javascript through AJAX to a Python script? ...

JSON viewer for browsing APIs

Does anyone have any recommendations for applications or browser plugins that make browsing and visualizing JSON APIs easy. ...

Wire format (HTTP) for AJAX JSON Requests in different frameworks?

Hi- I am trying to find out more low-level details on the HTTP requests that various JS/AJAX frameworks create when sending JSON POST requests to the web server. I am looking most importantly for information on the following frameworks (but info about any other notable exceptions is appreciated): .net, jquery, prototype, DWR and MooToo...

How to return JSON in specific format in ASP.NET MVC using Json() with no property names

Hi, I am using a charting javascript library that expects its data in a specific JSON format - without property names. I have an object in my Model that I am using to return the data to the charts. This looks as follows: public class ChartData { public string Key { get; set; } public int Value { get; set; } } An action looks a...

Convert Json style propertie names to Java Style CamelCase names with GSON

I'm using Gson to convert json data I get to a Java object. It works pretty well in all my tests. The problem is that our real objects have some properties named like is_online. Gson only maps them if they are named totally equal, it would be nice to have Gson convert the names to Java camel case isOnline. It seems this is possible whil...

How can I decode json in PHP 5.1 ?

json_decode function is not part of PHP 5.1, so I cannot use it. Is there any other function for this version? ...

Why is the JSON that flot expects no longer valid in JSONLint (and hence jQuery 1.4.x)?

Attempting to use the data series from this example no longer passes the JSONLint test and as such attempting to use it with jQuery 1.4 fails. Specifically, returning it or data like it from an ajax request as type json will cause jQuery to throw an error. I know this worked perfectly well with jQuery 1.3.x. Does anyone have a solution? ...