Archive for 'JSON'
jsTree Nears 1.0; Solicits Feedback
November 13, 2008 | Filed under: JSON
Several months ago, we covered jsTree, a promising new tree component built on top of jQuery. It’s since gained its own website and is nearing a 1.0 release. There have been a few changes since we last wrote about it:
* A lot of focus on the JSON data source
* Native async support …
What’s not in HTML 5?
November 11, 2008 | Filed under: JSON
In Mark’s latest installment of This Week in HTML 5 he delves into what ISN’T in the spec:
It has been suggested (1, 2, 3, &c.) that HTML 5 is trying to bite off more than it can metaphorically chew. It is true that it is a large specification, and it might benefit from …
JSLint Discriminates the "Bad" from the "Good" in JavaScript
November 10, 2008 | Filed under: JSON
JSLint is “a JavaScript program that looks for problems in JavaScript programs”. Written by Douglas Crockford, senior JavaScript architect at Yahoo!, JSLint helps discriminate the “bad parts” of a script from its “good parts”, as defined by a professional subset of the language. It can operate on JavaScript source, HTML source, or JSON text.
yboss - a wrapper for Yahoo’s BOSS API
November 10, 2008 | Filed under: JSON
BOSS - Build Your Own Search Service (the your is silent for reasons I cannot tell you as it would endanger the lives of our agents in the field) is a Yahoo! API to access their search index and get the data back either as XML or JSON. Whilst there is ample documentation available it can still be …
Video and audio tags and cross origin access
November 10, 2008 | Filed under: JSON
Thanks to Chris Double I saw the email thread on cross origin access to media files via the video and audio HTML 5 tags.
Jonas Sicking does a great job at explaining the issue, and why we need to restrict access. This is going to take a lot of people by surprised. Most will assume that you can video …
Javascript Currency Converter with Json
November 3, 2008 | Filed under: JSON
Realtime Javascript currency converter with Json
New in Dojo: JSON Schema, Builds, Drag Handles, DOM Attributes, Grid features
November 3, 2008 | Filed under: JSON
I remember a time where it was hard to get content out of the Dojo crew
Times have changed, the community is a lot bigger, and now we get to see a ton of content. Sometimes the irony behind this is that when you see a lot, you don’t want to overwhelm people so you pass on stuff that …
JSON :object-oriented JavaScript
November 2, 2008 | Filed under: JSON
JavaScript programming language that the primary objective is to provide a Netscape Navigator page scripting language. It’s still generally considered to be a subset of Java, but is not the case.
Yahoo! BrowserPlus Released
October 29, 2008 | Filed under: JSON
Yahoo! has had a big day with a lot of Open platform releases (OpenSocial, YAP, etc) and to add to that they have released Yahoo! BrowserPlus version 2.1.6, which is important as it opens up the BrowserPlus platform for anyone to use.
It features:
Google Chrome and IE 6 support
Smaller 2mb installation
End user configuration …
Tipue Robot
October 23, 2008 | Filed under: JSON
Tipue Robot is a web site indexing service. It can create an index of your site as XML, JSON, JavaScript, CSV or build a Google Sitemap.
How does the scoping work with eval()?
October 9, 2008 | Filed under: JSON
Rakesh Pai wanted to understand scope issues with eval and found a few surprises.
He started with the snippet:
PLAIN TEXT
JAVASCRIPT:
var foo = 123;
var bar = {
changeFoo: function() {
// We’ll keep changing the following snippet
alert(this);
eval(”var foo = 456″);
// Changing snippet ends
…
Aptana Jaxer 1.0 RC
October 8, 2008 | Filed under: JSON
The Jaxer team has released a release candidate for Jaxer 1.0.
Here a synopsis of all the new features and improvements that have gone into this latest release candidate:
Jaxer.Sandbox: HTTP-level control; support readyState, toHTML, waitForCompletion
Built-in, extensible dispatching for RESTful and RPC service requests
Fast, native JSON support
Improved APIs for HTTP Request and Response
More flexible handling of application configuration
Many …
Plain Text, XML, and JSON Transfer Formats
October 5, 2008 | Filed under: JSON
Today, I will talk about data transfer formats that you see when dealing with AJAX. The three that are most commonly used are plain text, XML, and JSON. AJAX stands for Asynchronous JavaScript And XML. Due to this fact it is commonly misunderstood that XML is the only way to transfer data. Below I […]
Douglas Crockford : JavaScript — The Good Parts
September 26, 2008 | Filed under: JSON
Douglas Crockford the creator of JSON and the prominent architect at Yahoo! speaks about his book — “JavaScript — The Good Parts”
HTML Whitelist: Sanitize your markup
September 25, 2008 | Filed under: JSON
HTML Whitelist is the latest in the “cool little Python Web service thrown up on App Engine” by my good colleague DeWitt Clinton.
It does one thing, and it does it well. You can pass the service HTML and it will return a sanitized version.
For example:
PLAIN TEXT
HTML:
// original
The <strong>quick</strong> brown fox <script src=”http://evil.com”> jumps <kbd>over</kbd> the …
OfflineRest: One pattern for offline architecture
September 24, 2008 | Filed under: JSON
Kris Zyp has created OfflineRest, a new module in Dojo 1.2 that allows for a simple offline pattern to building your application.
Dojo 1.2’s new dojox.rpc.OfflineRest module automates the local storage of data and synchronization by leveraging the Dojo Data and REST abstractions. The OfflineRest module augments the JsonRest service in Dojo such that requests are cached …
Passing JavaScript Objects to PHP
September 24, 2008 | Filed under: JSON
If you do not have JSON support enabled in your PHP installation, or simply do not want to deal with JSON, you are in luck. There is another way to pass JavaScript objects to PHP.
Social Media ABC’s - J is for Jargon
September 23, 2008 | Filed under: JSON
Welcome to my series of blog posts on the ABC’s of Social Media, a tool that you can use to make you more “hip” in the world of Facebook, Twitter, and LinkedIn (just to name a few). Today’s letter is “J”. There weren’t too many social media words starting with “J”. There were some technical terms such as …
Aptana Jaxer Benchmarks
September 17, 2008 | Filed under: JSON
Jaxer has been out in beta for a while and is nearing its 1.0 release. Many comments on Ajaxian about Jaxer have been about performance benchmarks. Uri Sarid, CTO of Aptana, has compiled some initial benchmarks including comparisons to PHP and Ruby on Rails. (Jaxer comes out in between the two):
We wanted to answer a simple …
PURE - JavaScript Template Engine for HTML
September 15, 2008 | Filed under: JSON
A simple, unobtrusive and ultra-fast templating tool to generate HTML from JSON data
Douglas Crockford: ‘I Want a Browser War!’
September 9, 2008 | Filed under: JSON
Douglas Crockford: ‘I Want a Browser War!’: Douglas Crockford, a JavaScript architect at Yahoo and the man behind JSON, the JavaScript Object Notation, says he welcomes a browser war if it will bring innovation in the browser space and move the Web forward. Crockford says the browser war between Microsoft and Netscape…
How to post a form by Json without page reloading?
September 3, 2008 | Filed under: JSON
Please prefer to http://blog.tuvinh.com/javascript-and-flash-related/how-to-post-form-using-json/ for more details. Thanks
addSizes.js: automatic link file-size generation
September 2, 2008 | Filed under: JSON
Nathalie Downe has taken Simon Willison’s json-head App Engine mini-service and used it to create addSizes.js, a little script that looks for large files linked from a page, and automatically adds their file size to the copy after the link.
Once in place, you simple do your usual link, and asynchronously the Web page will be updated to look …
Improving XML Document Validation with Schematron
August 16, 2008 | Filed under: JSON
An Introduction to JavaScript Object Notation (JSON)
Using JSON to Exchange Data
August 11, 2008 | Filed under: JSON
Javascript Object Notation (JSON) is a fancy name for a simple idea: A web page can download data stored as javascript variables. It’s caused a buzz in the tech world because JSON is much easier to load, read and manipulate compared to XML. Also, parsing large XML files can be a large performance hit - JSON gives you an object, …
JSON support added to open source Aptana Jaxer server
August 7, 2008 | Filed under: JSON
The latest release of Aptana’s Jaxer Ajax server (Jaxer 1.0 RC B) hasadded support for the creation and delivery of JSON data services –Jaxer runs JavaScript natively on the server-side and includes JSONserialization APIs at both client and server.This article has a nice simple example in it too.
JavaScript Overlay Types in GWT
August 5, 2008 | Filed under: JSON
Bruce Johnson of the GWT team has continued the deep dive into GWT with a posting on a new GWT 1.5 feature: JavaScript overlay types. This feature goes beyond the JNSI technique to “make it easy to integrate entire families of JavaScript objects into your GWT project. There are many benefits of this technique, including the ability to use …
Cross domain access now, and support for the future
August 1, 2008 | Filed under: JSON
Kris Zyp is really leading the charge on various missions such as JSON-* and XHR-*. This time he has a posting on a new cross-site XHR plugin repository that wraps up the myriad of techniques that are both pending in standards (XDomain, XHR++) and work arounds (window.name, magic iframe hackery). It also falls back to the faithful “just put …
JSON Pickle: Serialize your complex Python objects to JSON
July 31, 2008 | Filed under: JSON
John Paulett wanted to be able to define complex Python model objects, then seamlessly pass them into CouchDB and to client-side Javascript.
To make this happen for objects that are beyond primitive sets he created JSON Pickle which has been used on the Universal Feed Parser, and lets you do the following:
PLAIN TEXT
PYTHON:
>>> import jsonpickle
>>> from jsonpickle.tests.classes import Thing
# …
JSON-head, it is not about size - it is about usefulness
July 29, 2008 | Filed under: JSON
Simon Willison is lately having a lot of fun with App Engine and developing small RESTful helper apps for the masses out there. Following JSON Time, a small timezone lookup API over HTTP (showcased at BBC’s Mashed earlier this year) he now released JSON head which is what it says on the tin: a HTTP HEAD lookup app …
Dojango: Two great tastes in one can!
July 28, 2008 | Filed under: JSON
Dojango, a template Django application that includes full Dojo support baked in, has been released by Tobias Klipstein, Nikolai Onken, and Wolfram Kriesing.
It provides capabilities to easily switch between several Dojo versions and sources (e.g. aol, google, local)
Delivers helping utilities, that makes the development of rich internet applications in combination with dojo more comfortable.
It makes the …
Relax. A Database that is Designed for the Web.
July 13, 2008 | Filed under: JSON
Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database accessible via a RESTful HTTP/JSON API. Among other features, it provides robust, incremental replication with bi-directional conflict detection and resolution, and is queryable and indexable using a table-oriented view engine with JavaScript…
On the threshold of JSON
July 10, 2008 | Filed under: JSON
JSON - Javascript Object Notation is a subset of Object Notation in Javascript. It is a programming language independent data format. It is considered as a Light Weight Data Interchange Format as it is easy for programmers to read and for machines to parse and generate. And if you are familiar with C, C++, C#, Java or javascript syntax, 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.

