background preloader

Parse JSON with jQuery and JavaScript

Parse JSON with jQuery and JavaScript

Introducing JSON Template March 2009 JSON Template is a minimal but powerful templating language, currently implemented in bothPython and JavaScript. To use it, simply copy the Python file or the JavaScript file into your project. Neither has any external dependencies. Since there are over one bajillion template languages for Python alone, it deserves some explanation. But first here are some examples. Simple example This Python example should look familiar to many people.* The JavaScript version is a straightforward translation of this API. Full Example To read this example, keep in mind the following: These few constructs are surprisingly powerful. The following example uses most of the language, but not all. A template string ... ... combined with a data dictionary ... ... gives output: Here is the rendered output: Here is the same example live in JavaScript. Motivation There are a few problems with the state of the art: Nearly all template languages are inexpressive and ill-specified procedural languages. Design License

Yahoo Pipes--RSS without Server Side Scripts Filed: Mon, Feb 19 2007 under Programming|| Tags: json pipes rss javascript Something important happened when Yahoo released their new pipes service. Beyond the ability to mash up different internet resources, pipes made it possible for every web-publisher to include RSS feeds on their pages without the need of server side scripts! From conveniently publishing your delicious bookmarks, to making your own launch page, this new service heralds a major, major shift in web publishing. This article delves into how to create and integrate yahoo-pipes RSS into your web page. Introduction Yahoo Pipes is a service which lets you take information on the web, process it, then format it in interesting ways. If you scroll down to the end of the feed page you'll see the traditional RSS label for the feed, the same ol' RSS label which requires a web-server to retrieve and process before it can be sent on to the browser. I've already created, saved, and published a generic feed pipe you can use. IE7 Bug

JSON for the masses Sunday Feb 19 2006 Your co-workers will love you for writing in JSON because it will most likely not conflict with their scripts that are being called within the same web documents. For Many Years... JavaScript has been portrayed as a very ugly language. Libraries like prototype, script.aculo.us, behavior, and Rico have all made their debut in 2005 and topping the charts of development circles as some of the greatest things to happen for web developers. Why? Because JSON is here. Reasons for JSON JSON is easy. No more fuss of writing function after function that has no meaning to which other group of functions it belongs to What is Object Notation in JavaScript? According to Douglas Corckford's website, JSON is a lightweight data-interchange format. As a simple example, Object Notation can be expressed in the following format: Sample Object Notation Reference Names Names can be anything except one of the JavaScript reserved keywords - which come to find out can actually be quite lengthy. Values

Related: