Archive for 'JSON'
JSON Diff Released
June 30, 2008 | Filed under: JSON
Tom Robinson has built a useful utility, JSON Diff, which gives you a graphical look at the difference.
Changed portions are displayed in yellow. Additions are displayed in green. Deletions are displayed in red.
The visualization is live itself, so you can move around the nodes using the triangles.
Jiffy Firebug Plugin: Fine grained calculation of performance timings
June 23, 2008 | Filed under: JSON
Today is the kick off of the Velocity performance conference, and we are going to see a fair share of performance news over the next day or two.
To start out, Bill Scott (Rico/ex-Yahoo/now Netflix) has announced a new Firebug plugin, Jiffy that adds a new tab showing fine grained performance data. You want to know the time between …
Silverlight 2 beta 2: cross domain connections, more controls, and animation
June 10, 2008 | Filed under: JSON
Microsoft launched Silverlight 2 beta 2 last Friday (which seemed a bit strange….).
I saw this on the same day as some Adobe folks showed me an old thread that showed MLB.tv sneaking a context menu saying “About Silverlight” into the Flash version
What is new in the latest beta? Danny Thorpe is looking forward to …
Actual Contact Finder using the Social Graph API
June 5, 2008 | Filed under: JSON
To my amazement I couldn’t find any straightforward pieces of code actually doing this. All I could find was the usual pretty printed JSON outputs. So I rolled up my sleeves and did some Javascript hacking myself.
JSON(Javascript Object Notation)
May 29, 2008 | Filed under: JSON
The decription of how to use json object…
Debugging PHP, JSON & JavaScripts Application using PHP IDE
May 27, 2008 | Filed under: JSON
Article looking at the use of PHP Editor and PHP Debugger for developing applications using PHP, JavaScript and JSON. These applications employ PHP scripts to serve the responses in JSON to JavaScript client side requests made via Dynamic Script Injection or AJAX .
Converting XML to JSON
May 25, 2008 | Filed under: JSON
I’m tired of hearing the “XML vs JSON” debate. Why not just make them compatible. Why would I want to convert XML to JSON. Mainly because JSON is easier to use in JavaScript - since it is “JavaScript Object Notation”. Most of the content/data available on the web is in XML format and not JSON, so converting XML to JSON …
dhtmlxGrid Update, Build Dynamic Data-Driven Grids from XML, CSV or JSON
May 20, 2008 | Filed under: JSON
DHTMLX have just announced the latest update of its dhtmlxSuite, a professional Ajax components toolkit for web UI. The major updates concern Grid and Treegrid components and include a large number of new features and improvements, including the ability to load data from JSON and JS-array, smart rendering and paging support for hierarchical data grids. …
Learning JavaScript Programming Language through Video
May 15, 2008 | Filed under: JSON
These lectures are given by Douglas Crockford who is a senior JavaScript Architect at Yahoo!. He is well known for his work in introducing JavaScript Object Notation (JSON).
inputEx: JSON form builder
May 13, 2008 | Filed under: JSON
inputEx is “a javascript framework to build fields and forms” created by Eric Abouaf. The framework uses a JSON format to describe a form, such as:
PLAIN TEXT
JAVASCRIPT:
{
“fields” : [
{
“type” : “group”,
…
Persevere: JSON Storage / Application Server
May 13, 2008 | Filed under: JSON
Kris Zyp of Sitepen has released Persevere:
An open source set of tools for persistence and distributed computing using intuitive standards-based JSON interfaces of HTTP REST, JSON-RPC, JSONPath, and HTTP Channels. The core of the Persevere project is the Persevere Server. The Persevere server includes a Persevere JavaScript client, but the standards-based interface is intended to be …
oEmbed makes embedding third party videos and images a breeze
May 9, 2008 | Filed under: JSON
Flickr, Viddler, Qik, Pownce and Revision3 are the first services to support oEmbed, an easy way to allow embeding media from a certain URL in a third party site.
From the oEmbed site:
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content …
Talking about JavaScript 1.7, 1.8 and 1.9 before we get to 2.0
April 22, 2008 | Filed under: JSON
Is this JavaScript that would run in a current browser?
PLAIN TEXT
JAVASCRIPT:
function square_of(x) x * x;
players.sort(function(x,y) y[’score’] - x[’score’]);
Yup. This is JavaScript 1.8 and 1.7, also known as Pythonizing Javascript
Tiago Silveira discusses these lambda expressions, as well as Generators:
PLAIN TEXT
JAVASCRIPT:
function actions() {
for (f in document.forms) {
yield document.forms[f].action
}
}
list comprehensions, let:
PLAIN TEXT
JAVASCRIPT:…
Conform your JSON to ECMAScript 4 with JCON
April 18, 2008 | Filed under: JSON
Oliver Steele is doing great work, and he has just released a gem called JCON which stands for JavaScript Conformance. It tests JSON values to make sure that they are valid for the new world of ECMAScript 4 type definitions (e.g. new { x:int, y:string }( 3, “foo” ) ).
Usage
PLAIN TEXT
RUBY:
type = JCON::parse "[string, int]"
type.contains?([‘a’, …
HotRuby: Run Ruby on a JavaScript interpreter?
March 27, 2008 | Filed under: JSON
This is from the “wow, really?” department. HotRuby is an implementation of Ruby in JavaScript!
The way it works is that a HotRuby “VM” takes the resulting output from YARV and can grok it via JSON:
PLAIN TEXT
RUBY:
VM::InstructionSequence.compile(cgi[’src’], "src", 1, OutputCompileOption).to_a.to_json
Thus, you can embed Ruby by doing something like this:
PLAIN TEXT
HTML:
…
Using JSON and Yahoo Pipes to avoid proxies
March 20, 2008 | Filed under: JSON
Ajax-style server calls don’t necessarily require XMLHttp requests. This article shows you how to use Yahoo pipes, JavaScript Object Notation (JSON), and dynamic script tags to convert data from XML to JSON, to side-step the need for proxying.
Can We Fix The Web?
March 20, 2008 | Filed under: JSON
Douglas Crockford, the creator of JSON (JavaScript Object Notation) (define) and a senior JavaScript Architect at Yahoo (NASDAQ:YHOO) is convinced that the Web is broken.
SMD: Pluggable Web Services
March 20, 2008 | Filed under: JSON
PLAIN TEXT
JAVASCRIPT:
{target:”/jsonrpc”, // this defines the URL to connect for the services
transport:”POST”, // We will use POST as the transport
envelope:”JSON-RPC-1.2″, // We will use JSON-RPC
SMDVersion:”2.0″,
services: {
add : { // define a service to add two numbers
parameters: [
{name:”a”,type:”number”}, // define the two parameters
{name:”b”,type:”number”}],
returns:{”type”:”number”}
},
foo : { // nothing is required to be defined, …
The FireEagle has landed - personal location information for your applications
March 5, 2008 | Filed under: JSON
Yahoo’s Tom Coates today finally released FireEagle at ETech 2008. Seeing Tom in the office for quite a while getting everything ready makes me very happy to announce that it is out and invite you to come along and sign up for the beta to start testing and - even more importantly - developing applications for it. …
CouchDB: Using E4X to get the XML back
March 5, 2008 | Filed under: JSON
Christopher Lenz has been spending time on the CouchDB project. He got lulled over when CouchDB went to JSON.
He talks about how “CouchDB is pretty well positioned for storing and querying XML data in addition to JSON” via the E4X support that it gets out of the box as it uses SpiderMonkey.
PLAIN TEXT
JAVASCRIPT:
by_lang: function(doc) {
…
Json.NET 2.0
March 3, 2008 | Filed under: JSON
James Newton-King has quickly released a new version of Json.NET that has a new easier syntax for querying and and creating JSON.
Creating JSON
PLAIN TEXT
JAVASCRIPT:
JObject o = JObject.FromObject(new
{
channel = new
{
title = “James Newton-King”,
link = “http://james.newtonking.com”,
description = “James Newton-King’s blog.”,
…
Who needs JSON? :)
March 2, 2008 | Filed under: JSON
a JavaScript serialize function that’s just like PHP
An Introduction to JavaScript Object Notation (JSON)
February 27, 2008 | Filed under: JSON
JavaScript Object Notation, or JSON for short, is a lightweight data-interchange format which may prove to be a viable alternative to XML for IT developers. It’s easy to read and write by people as well as for machines to parse and generate.
JavaScript Functional Pattern Matching
February 26, 2008 | Filed under: JSON
Adrien Friggeri has been playing with pattern matching in JavaScript a la functional programming.
Take a look at the examples such as writing a factorial via matching:
PLAIN TEXT
JAVASCRIPT:
function fact (n) {
return m.match(n,
[
[ 0 , function ( ) { return 1 …
Have prototype.js automatically eval JSON responses
February 20, 2008 | Filed under: JSON
JSON is the perfect format for passing data from a server to JavaScript. With the prototype.js the JSON string sent by the server is automatically evaluated to a native JavaScript datatype. In order to do this you need to pass the data back with a content-type of application/json.
LINQ to JSON
February 12, 2008 | Filed under: JSON
James Newton-King has posted a new bit of code called LINQ to JSON which is a .NET LINQ style API over JSON.
For example, here is how you could get out categories and how often they are used:
PLAIN TEXT
JAVASCRIPT:
var categories =
from c in rss.PropertyValue<jobject>(”channel”)
.PropertyValue<jarray>(”item”)
…
JSON quick start
February 2, 2008 | Filed under: JSON
Quick and easy guide to understand how JSON (JavaScript Object Notation) works
JSON 2.0: Libraries and browser support
January 31, 2008 | Filed under: JSON
John is at it again, writing a piece on recent news surrounding JSON.
He links to an updated library by Douglas Crockford, …
Work with JSON data via SQL
January 26, 2008 | Filed under: JSON
A javascript library that allows access to JSON data via SQL syntax, for example: jsonsql.query(”select title,url from json.channel.items where (category==’javascript’ || category==’vista’) order by title,category asc limit 3″,json);
Transformar una cadena a una estructura JSON en javascript
January 19, 2008 | Filed under: JSON
Ayuda de como utilizar JSON en javascript de una forma muy simple
JSONLib: JSON Extensions a la E4X
January 18, 2008 | Filed under: JSON
Nicholas C. Zakas wanted to keep JSON out of JavaScript. He has patterned a new form of JSON support on E4X and wrote it up.
Nichole wants:
The addition of two new global types: JSON and JSONList. JSON represents a JSON object while JSONList represents a JSON array.
Both types have a toJSONString() method that correctly encodes an object into a …
JsonSQL: JSON parser, SQL style
January 16, 2008 | Filed under: JSON
Trent Richardson has released JsonSQL, a JavaScript library that allows you to muck around with JSON as though it is a datastore:
The API
PLAIN TEXT
JAVASCRIPT:
jsonsql.query(”select * from json.channel.items order by title desc”, json);
jsonsql.query(”select title,url from json.channel.items where (category==’javascript’ || category==’vista’) order by title,category asc limit 3″, json);
Usage
Only Select statements are supported
The requested fields may be a “*” or …
Apache CouchDB: Congrats to IBM and Damian Katz
January 3, 2008 | Filed under: JSON
CouchDB has been getting people re-energized about DB stuff recently. Some got gung-ho about the OODBMS and that fizzled and people went back to the “ug, I guess we just do the SQL thing and be done with it… and maybe use an ORM if we really hate it”.
Then the Couch came along and had us …
UIDL: User Interface Description Language
December 30, 2007 | Filed under: JSON
UIDL (User Interface Description Language) aims to create a scriptable, JavaScript based language for expressing complex user interfaces. The main features of a UIDL page are the ability to create complex user interfaces (using Swing based widgets) and to communicate asynchronously with server based objects (using the JSON-RPC protocol).
Object Oriented JavaScript - Should You Use It? - Part 2
December 21, 2007 | Filed under: JSON
This post gets to the meat and potatoes and shows code example of how to program in Object Oriented JavaScript and why it is useful. It also touches on how Object Oriented Programming differs from Java and C++ (i.e. class structure). The post also shows an example of how this would pertain to JSON.
How to use JSON-RPC and HTML forms with Meteora
December 14, 2007 | Filed under: JSON
This is an example that uses Meteora (http://meteora.astrata.com.mx), a modified version of Mootools (http://mootools.net), to illustrate how easy is to develop Buzzword Compliant (A.K.A. AJAX) web applications without having to write Javascript.
Brendan Eich: JavaScript 2 evolution and the myth busting Tracing JIT
November 30, 2007 | Filed under: JSON
I love watching Brendan Eich speak. You know that before long you will be deep into a topic, and if you slip up for a minute you will be hopelessly behind. You have to listen closely. Even if you do, you will probably think that you missed a lot of it.
Brendan has posted his slides …
A JSON Load Object without using Eval
November 21, 2007 | Filed under: JSON
David Hurth of Ajaxonomy.com shows the code to create a JavaScript object that is used to create JSON without using eval.
Cross Domain XHR W3C proposal
November 21, 2007 | Filed under: JSON
The W3C has a new proposal titled Enabling Read Access for Web Resources which defines access control primitives to be used for cross domain XHR.
You can set control via a HTTP header:
PLAIN TEXT
HTML:
Access-Control: allow <*.example.org> exclude <*.public.example.org>
or an XML processing instruction:
PLAIN TEXT
XML:
<?access-control allow=”allow.example.org” deny=”deny.example.org”?>
so no cross_domain.xml.
Kris Zyp has written up his thoughts on …
JavaScript coding basics
November 20, 2007 | Filed under: JSON
This is not one of those dummy “idiot’s guides”, despite the article is called “JavaScript coding basics” it covers such advanced topics as:* effective work with JS objects;* JSON Java Scriptt Object Notation);* DOM operations with comparison DOM against innerHTML;* events and different ways to create and attach them;* fast JS code.
Squirrel IoC: Dependency Injection for JavaScript
November 19, 2007 | Filed under: JSON
Mark Forster is a fan of IoC from his days in Spring-land. He found that he was “writing endless amount of code to just instantiate objects and wiring up dependencies in these objects” and decided that what was in order was Squirrel IoC.
To see it in action, we can look at a simple example. There are three files at …
TinyMCE 3 First Look
November 2, 2007 | Filed under: JSON
We got our first look at a rewritten Tiny MCE 3 today.
From a pure feature point of view, this release might not be very impressive, but if you are interested in JavaScript and do a lot of custom development, this is the release you have been waiting for. One of the main focuses for the new 3.x branch is …
Pownce announces new API
October 31, 2007 | Filed under: JSON
The Pownce team released version 1 of the Pownce API yesterday. The API allows for various methods of retrieving Pownce-related data such as notes, users or fans and allows for return data to be formatted as XML or JSON. Since the API will be evolving quickly, the team has also taken the added step of providing versioning for …
Flash & Javascript :communicate thru Objects (and why JSON should be ESON)
October 27, 2007 | Filed under: JSON
Flash allows to create rich web interface : very cool effects, 3D animations,data-driven websites. Actionscript,language based on ECMAScript, offers a lot of power to Flash applications.Here, we will be using Actionscript 3 to see how we can communicate with Javascript objects thru the literal notation and DOM !
omar kilani - projects - php-json
October 23, 2007 | Filed under: JSON
php-json is an extremely fast PHP C extension for JSON (JavaScript Object Notation) serialisation. It conforms to the JSON specification.
A little Flickr hacking (in a good way)
October 22, 2007 | Filed under: JSON
Christian Heilmann is at it again posting an entry about a neat method of grabbing Flickr photos without having to using the Flickr API:
Here you’ll learn how to get Flickr photos into your JavaScript solutions without having to resort to using the full API. As this is a hack you will only get the latest 20 photos, if …
JSON News: JSON Schema and JSON Referencing
October 11, 2007 | Filed under: JSON
Kris Zyp has been plugging away on a couple of interesting JSON topics:
JSON Referencing Schemes
There has been a lot of discussion about handling referencing schemes, so Kris has gotten the various ideas and summarized them.
He takes the following object call:
PLAIN TEXT
JAVASCRIPT:
obj = {name:”foo”, child: {”name” : “bar”}};
obj.child.parent = obj;
and shows:
PLAIN TEXT
JAVASCRIPT:
// fixups scheme
{”result”:{”name”:”foo”, “child”: {”name” …
How to: Parse JSON with jQuery and JavaScript
October 2, 2007 | Filed under: JSON
JSON must rely on JavaScript’s object notation. As such, some custom JavaScript will always be required (i.e. - no jQuery selectors). Some progress has been made in addressing the overarching need, but I maintain a high level of specificity in the following snippet.
jabsorb: A new JSON-RPC for Java
September 24, 2007 | Filed under: JSON
Arthur Blake (with friends) has forked JSON-RPC-Java and has created jabsorb:
The project goal for jabsorb is to maintain (and hopefully improve) the practicality and beautiful simplicity that makes JSON-RPC-Java a great library, while also adding new common sense features, more test cases, and more documentation to make the library better for everyone.
jabsorb also aims to add more advanced …

